{"id":32207719,"url":"https://github.com/tkonopka/rcssplot","last_synced_at":"2025-10-22T05:58:39.190Z","repository":{"id":27305882,"uuid":"30779938","full_name":"tkonopka/Rcssplot","owner":"tkonopka","description":"R plots styled with css","archived":false,"fork":false,"pushed_at":"2024-11-10T10:36:04.000Z","size":388,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T05:58:29.012Z","etag":null,"topics":["css","data-science","r","visualization"],"latest_commit_sha":null,"homepage":"https://github.com/tkonopka/Rcssplot/wiki","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cloudfoundry/java-buildpack","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkonopka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-13T22:58:08.000Z","updated_at":"2025-07-21T13:32:21.000Z","dependencies_parsed_at":"2022-08-26T22:42:06.195Z","dependency_job_id":null,"html_url":"https://github.com/tkonopka/Rcssplot","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tkonopka/Rcssplot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkonopka%2FRcssplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkonopka%2FRcssplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkonopka%2FRcssplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkonopka%2FRcssplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkonopka","download_url":"https://codeload.github.com/tkonopka/Rcssplot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkonopka%2FRcssplot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280389299,"owners_count":26322507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","data-science","r","visualization"],"created_at":"2025-10-22T05:58:37.729Z","updated_at":"2025-10-22T05:58:39.185Z","avatar_url":"https://github.com/tkonopka.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rcssplot\n\n![Status](https://travis-ci.org/tkonopka/Rcssplot.svg?branch=master)\n[![codecov](https://codecov.io/gh/tkonopka/Rcssplot/branch/master/graph/badge.svg)](https://codecov.io/gh/tkonopka/Rcssplot)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/Rcssplot)](http://cran.r-project.org/package=Rcssplot)\n\n\nThe Rcssplot package brings cascading style sheets to the R graphical \nenvironment. It provides a means to separate the aesthetics from \ndata crunching in plots and charts.\n\n\n## Installation\n\nThe package can be installed from CRAN.\n\n```\ninstall.packages(\"Rcssplot\")\n```\n\nAlternatively, it can be installed from this github repository via devtools.\n\n```\nlibrary(\"devtools\")\ninstall_github(\"tkonopka/Rcssplot\")\n```\n\n\n## Using Rcssplot\n\nAfter installation, the package can be loaded using the library command.\n\n```\nlibrary(\"Rcssplot\")\n```\n\nThe [vignette on CRAN](https://cran.r-project.org/web/packages/Rcssplot/vignettes/Rcssplot.pdf) provides an in-depth tutorial and the [github wiki](http://github.com/tkonopka/Rcssplot/wiki) provides examples. As a minimal use-case, consider a barplot.\n\n```\nbarplot(1:4, col=\"red\", density=10, border=\"red\")\n```\n\nStyling of the plot is incorporated within the function call. In the Rcssplot framework, these settings can be delegated to a cascading style sheet.\n\n```\nRcssDefaultStyle \u003c- Rcss(text=\"barplot { col: red; border: red; density: 10 }\")\nbarplot(1:4)\n```\n\nThe style definitions are here provided as a string, but in practice, it is easier to edit them in a file in a text editor. The output of the final barplot command reproduces the styling above.\n\n\n## Compatibility with base graphics\n\nFrom version 1.0, loading the package using `library(Rcssplot)` triggers messages from the R environment that the package masks some well-known functions from base graphics. The masked functions include `plot`, `text`, `mtext`, and many others. Thus, after the package is loaded, executing commands such as `plot` will be trigger `Rcssplot` rather than base `graphics`. \n\nThe masking functions are designed to mimic the originals. Thus, in many cases, existing code using base graphics should work as before. Some exceptions may appear, however, if existing code makes extensive use of positional arguments. As an example, consider the following.\n\n```\nx100 \u003c- rnorm(100)\nhist(x100, 10)\n```\n\nWhile this is valid in base graphics, it triggers an error under Rcssplot because the argument `10` carries meaning through its position in the function call, and not through a named argument or keyword. To avoid the error, the command can be adjusted with an argument name.\n\n```\nhist(x100, breaks=10)\n```\n\n\n## Acknowledgments\n\nMany thanks to the CRAN team and contributors: FrancoisGuillem, nfultz, yihui.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkonopka%2Frcssplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkonopka%2Frcssplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkonopka%2Frcssplot/lists"}