{"id":13712283,"url":"https://github.com/cheuerde/plotcli","last_synced_at":"2025-10-22T03:46:19.077Z","repository":{"id":215534759,"uuid":"739181044","full_name":"cheuerde/plotcli","owner":"cheuerde","description":"R package for terminal plots","archived":false,"fork":false,"pushed_at":"2024-05-03T19:35:10.000Z","size":2563,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-22T03:46:18.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cheuerde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-05T00:46:27.000Z","updated_at":"2025-02-13T12:47:35.000Z","dependencies_parsed_at":"2024-01-07T18:27:41.284Z","dependency_job_id":"d62db0c8-2f95-4439-93f1-c8f3d3a7cc00","html_url":"https://github.com/cheuerde/plotcli","commit_stats":null,"previous_names":["cheuerde/plotcli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cheuerde/plotcli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheuerde%2Fplotcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheuerde%2Fplotcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheuerde%2Fplotcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheuerde%2Fplotcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheuerde","download_url":"https://codeload.github.com/cheuerde/plotcli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheuerde%2Fplotcli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280376534,"owners_count":26320276,"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":[],"created_at":"2024-08-02T23:01:16.676Z","updated_at":"2025-10-22T03:46:19.061Z","avatar_url":"https://github.com/cheuerde.png","language":"R","readme":"# plotcli: Command-Line Plots for R\n\n[![CRAN status](https://www.r-pkg.org/badges/version/plotcli?color=green)](https://CRAN.R-project.org/package=plotcli)\n[![CRAN checks](https://badges.cranchecks.info/worst/plotcli.svg)](https://cran.r-project.org/web/checks/check_results_plotcli.html)\n[![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/plotcli)](http://www.r-pkg.org/pkg/plotcli)\n[![Downloads](http://cranlogs.r-pkg.org/badges/plotcli?color=blue)](http://www.r-pkg.org/pkg/plotcli)\n\n\n![Colored Density Plot on Terminal](docs/boxplot.jpg)\n\nplotcli is an R package that brings the power of command-line plotting to your R environment. \nWith a simple and intuitive R6 class interface, plotcli allows you to create and customize a \nvariety of plot types, such as scatter, line, bar, and box plots, directly in your console. \n\nFeatures\n\n- Convert `ggplot2` objects to colored terminal plots with `ggplotcli`\n- Easy-to-use R6 class interface\n- Supports scatter, line, bar, and box plots\n- Customizable plot elements: title, axis labels, ticks, and legend\n- Braille character support for high-resolution plots\n- Convenience wrappers for most frequently used functions\n\n`plotcli` is heavily inspired by the excellent [UnicodePlots.jl](https://github.com/JuliaPlots/UnicodePlots.jl) library.\n\n\n```r\n\u003e ggplotcli(ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length, color = Species)) + geom_boxplot())\n\n                    ┌────────────────────────────────────────────────────────────┐       \n                4.4 │       ───────                                              │       \n                    │          │                                                 │       \n                    │          │                                                 │       \n                    │          │                                                 │       \n                    │          │                                   ───────       │       \n                3.8 │      ┌───────┐                                  │          │       \n                    │      │       │                                  │          │       \n                    │      │───────│           ───────                │          │       \n                    │      │       │              │                   │          │   setosa   \nSepal.Length    3.2 │      └───────┘              │               ┌───────┐      │   versicolor   \n                    │          │                  │               │       │      │   virginica   \n                    │          │              ┌───────┐           │───────│      │       \n                    │       ───────           │───────│           └───────┘      │       \n                    │                         │       │               │          │       \n                2.6 │                         │       │               │          │       \n                    │                         └───────┘               │          │       \n                    │                             │                   │          │       \n                    │          *                  │                ───────       │       \n                    │                             │                              │       \n                2.0 │                          ───────                           │       \n                    └────────────────────────────────────────────────────────────┘       \n                                                                                         \n                            setosa           versicolor           virginica              \n                                                                                         \n                                             Sepal.Width                                 \n```\n\n\n## Installation\n\nYou can install the plotcli package from GitHub using the devtools package:\n\n```r\n# Install devtools if you haven't already\nif (!requireNamespace(\"devtools\", quietly = TRUE)) {\n  install.packages(\"devtools\")\n}\n\n# Install plotcli from GitHub\ndevtools::install_github(\"cheuerde/plotcli\")\n```\n\n## Usage\n\nThe easiest way to use the package if you are already familiar with `ggplot2`\nis to configure your ggplot2 object as usual and then simply convert to a `plotcli`\nterminal plot with `ggplotcli`:\n\n```r\n# Load the plotcli package\nlibrary(plotcli)\n\ndata(mtcars)\nmtcars$cf = as.character(mtcars$cyl)\n\np = ggplot(mtcars, aes(x = mpg, y = wt, color = cf)) + geom_point()\n\n# print to terminal\nggplotcli(p, braille = FALSE)\n```\n\nCheck the vignettes for all possible ways of using the package.\n\n## Showcase\n\n![Colored Density Plot on Terminal](docs/scatter.jpg)\n![Colored Density Plot on Terminal](docs/density_raw.jpg)\n![Colored Density Plot on Terminal](docs/regression.jpg)\n![Colored Density Plot on Terminal](docs/hist.jpg)\n![Colored Density Plot on Terminal](docs/pca.jpg)\n\n## Similar Projects\n\n - [txtplot](https://github.com/bbnkmp/txtplot/): The OG in R\n - [r-plot](https://github.com/geotheory/r-plot): Collection of excellent terminal plotting functions\n - [UnicodePlots.jl](https://github.com/JuliaPlots/UnicodePlots.jl): The gold standard for terminal graphics\n - [plotext](https://github.com/piccolomo/plotext): Powerful terminal graphics in python\n\n## License\n\n`plotcli` is released under the MIT License.\n","funding_links":[],"categories":["Plot layers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheuerde%2Fplotcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheuerde%2Fplotcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheuerde%2Fplotcli/lists"}