{"id":24182985,"url":"https://github.com/ms609/plottools","last_synced_at":"2025-09-21T05:32:03.798Z","repository":{"id":153475901,"uuid":"624000092","full_name":"ms609/PlotTools","owner":"ms609","description":"Tools for plotting with base R","archived":false,"fork":false,"pushed_at":"2025-09-15T12:19:15.000Z","size":4066,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-15T12:26:16.460Z","etag":null,"topics":["legends","plotting","r","r-package","spectrum"],"latest_commit_sha":null,"homepage":"https://ms609.github.io/PlotTools/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ms609.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"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":"codemeta.json","zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-05T14:31:46.000Z","updated_at":"2025-09-15T12:19:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb19c6cc-08a6-4a8b-bd7a-83f8ffc6d892","html_url":"https://github.com/ms609/PlotTools","commit_stats":{"total_commits":65,"total_committers":2,"mean_commits":32.5,"dds":0.06153846153846154,"last_synced_commit":"870c2dce12d3d0b6d84f264408ccc3153cf2cbae"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ms609/PlotTools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ms609%2FPlotTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ms609%2FPlotTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ms609%2FPlotTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ms609%2FPlotTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ms609","download_url":"https://codeload.github.com/ms609/PlotTools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ms609%2FPlotTools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276195628,"owners_count":25601152,"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-09-21T02:00:07.055Z","response_time":72,"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":["legends","plotting","r","r-package","spectrum"],"created_at":"2025-01-13T08:45:55.609Z","updated_at":"2025-09-21T05:32:03.541Z","avatar_url":"https://github.com/ms609.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlotTools\n\n[![Project Status: Active.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#project-statuses)\n[![codecov](https://codecov.io/gh/ms609/PlotTools/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ms609/PlotTools)\n[![CRAN Status Badge](https://www.r-pkg.org/badges/version/PlotTools)](https://cran.r-project.org/package=PlotTools)\n[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/PlotTools)](https://cran.r-project.org/package=PlotTools)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7803390.svg)](https://doi.org/10.5281/zenodo.7803390)\n\n\n'PlotTools' is an R package that allows the legends for continuous variables\nto be added to plots using the familiar functions of the default 'graphics'\npackage.  It also includes utility functions to manipulate irregular polygons\nand locate their centres.\n\nInstall the latest production version from CRAN using\n\n```r\ninstall.packages(\"PlotTools\")\n```\n\nor install the development version from GitHub with\n\n```r\ndevtools::install_github(\"ms609/PlotTools\")\n```\n\nPlease let me know of any feature requests or bugs by [opening an \nissue on GitHub](https://github.com/ms609/PlotTools/issues/).\n\n## Usage\n\n```r\n# Select a colour palette\npalette \u003c- if (packageVersion(\"grDevices\") \u003e 3.6) hcl.colors else heat.colors\n\n# Plot some example data\nplot(\n  cars,\n  xlab = \"Speed / mph\",\n  ylab = \"Stopping distance / ft\",\n  col = palette(125 + 1)[cars$dist + 1], # Colour points by distance\n  cex = cars$speed / 10,                 # Size points by speed\n  pch = 16,                              # Use filled circle for points\n  frame.plot = FALSE\n)\n\n# Display legend for colour scale\nPlotTools::SpectrumLegend(\n  \"topleft\",                             # Legend position\n  palette = palette,                     # Display our chosen palette\n  legend = seq(125, 0, length.out = 6),  # Annotate positions on legend\n  title = \"Distance\",\n  bty = \"n\"                              # Don't frame with box\n)\n\n# Display legend for plotting symbol sizes\nPlotTools::SizeLegend(\n  \"bottomright\",                         # Legend position\n  palette = \"darkgrey\",                  # Set colour - may be continuous\n  horiz = TRUE,                          # Orient horizontally\n  width = c(0, 2.5), scale = \"pch\",      # Scale for plotting character\n  legend = seq(0, 25, by = 5),           # Annotate positions on legend\n  x.intersp = 0,                         # Set x spacing\n  bty = \"n\",                             # Don't frame with box\n  inset = 0.05,                          # Inset from plot edges\n  title = \"Speed\"\n)\n```\n\n![image](https://user-images.githubusercontent.com/1695515/232433317-85412267-8c01-41f9-96be-bfc71533d59b.png)\n\n## Citation\n\nCite this package as:\n\nSmith, Martin R. (2023). _PlotTools: Add continuous legends to plots._\nComprehensive R Archive Network, \n[doi:10.5281/zenodo.7803390](https://dx.doi.org/10.5281/zenodo.7803390).\n\n\n## Contribute\n\nPlease note that the 'PlotTools' project is released with a\n[Contributor Code of Conduct](https://ms609.github.io/packages/CODE_OF_CONDUCT.html).\nBy [contributing](https://ms609.github.io/packages/CONTRIBUTING.html) to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fms609%2Fplottools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fms609%2Fplottools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fms609%2Fplottools/lists"}