Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 7 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.7%) to scientific vocabulary
Keywords
Repository
Tools for plotting with base R
Basic Info
- Host: GitHub
- Owner: ms609
- Language: R
- Default Branch: main
- Homepage: https://ms609.github.io/PlotTools/
- Size: 3.84 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
- Releases: 6
Topics
Metadata Files
README.md
PlotTools
'PlotTools' is an R package that allows the legends for continuous variables to be added to plots using the familiar functions of the default 'graphics' package. It also includes utility functions to manipulate irregular polygons and locate their centres.
Install the latest production version from CRAN using
r
install.packages("PlotTools")
or install the development version from GitHub with
r
devtools::install_github("ms609/PlotTools")
Please let me know of any feature requests or bugs by opening an issue on GitHub.
Usage
```r
Select a colour palette
palette <- if (packageVersion("grDevices") > 3.6) hcl.colors else heat.colors
Plot some example data
plot( cars, xlab = "Speed / mph", ylab = "Stopping distance / ft", col = palette(125 + 1)[cars$dist + 1], # Colour points by distance cex = cars$speed / 10, # Size points by speed pch = 16, # Use filled circle for points frame.plot = FALSE )
Display legend for colour scale
PlotTools::SpectrumLegend( "topleft", # Legend position palette = palette, # Display our chosen palette legend = seq(125, 0, length.out = 6), # Annotate positions on legend title = "Distance", bty = "n" # Don't frame with box )
Display legend for plotting symbol sizes
PlotTools::SizeLegend( "bottomright", # Legend position palette = "darkgrey", # Set colour - may be continuous horiz = TRUE, # Orient horizontally width = c(0, 2.5), scale = "pch", # Scale for plotting character legend = seq(0, 25, by = 5), # Annotate positions on legend x.intersp = 0, # Set x spacing bty = "n", # Don't frame with box inset = 0.05, # Inset from plot edges title = "Speed" ) ```

Citation
Cite this package as:
Smith, Martin R. (2023). PlotTools: Add continuous legends to plots. Comprehensive R Archive Network, doi:10.5281/zenodo.7803390.
Contribute
Please note that the 'PlotTools' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Owner
- Name: Martin R. Smith
- Login: ms609
- Kind: user
- Location: Durham, UK
- Company: Department of Earth Sciences, Durham University
- Website: https://orcid.org/0000-0001-5660-1727
- Twitter: PalaeoSmith
- Repositories: 21
- Profile: https://github.com/ms609
Palaeontology & phylogenetics
CodeMeta (codemeta.json)
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "PlotTools",
"description": "Annotate plots with legends for continuous variables and colour spectra using the base graphics plotting tools; and manipulate irregular polygons. Includes palettes for colour-blind viewers.",
"name": "PlotTools: Add Continuous Legends to Plots",
"relatedLink": "https://ms609.github.io/PlotTools/",
"codeRepository": "https://github.com/ms609/PlotTools/",
"issueTracker": "https://github.com/ms609/PlotTools/issues/",
"license": "https://spdx.org/licenses/GPL-2.0",
"version": "0.3.1.9000",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.5.1 (2025-06-13)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"author": [
{
"@type": "Person",
"givenName": "Martin R.",
"familyName": "Smith",
"email": "martin.smith@durham.ac.uk",
"@id": "https://orcid.org/0000-0001-5660-1727"
}
],
"contributor": [
{
"@type": "Person",
"givenName": "Martin",
"familyName": "Krzywinski",
"email": "martink@bcgsc.ca",
"@id": "https://orcid.org/0009-0005-5785-3631"
}
],
"copyrightHolder": [
{
"@type": "Person",
"givenName": "Martin R.",
"familyName": "Smith",
"email": "martin.smith@durham.ac.uk",
"@id": "https://orcid.org/0000-0001-5660-1727"
}
],
"maintainer": [
{
"@type": "Person",
"givenName": "Martin R.",
"familyName": "Smith",
"email": "martin.smith@durham.ac.uk",
"@id": "https://orcid.org/0000-0001-5660-1727"
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "knitr",
"name": "knitr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=knitr"
},
{
"@type": "SoftwareApplication",
"identifier": "rmarkdown",
"name": "rmarkdown",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=rmarkdown"
},
{
"@type": "SoftwareApplication",
"identifier": "sp",
"name": "sp",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=sp"
},
{
"@type": "SoftwareApplication",
"identifier": "spelling",
"name": "spelling",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=spelling"
},
{
"@type": "SoftwareApplication",
"identifier": "testthat",
"name": "testthat",
"version": ">= 3.0",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=testthat"
},
{
"@type": "SoftwareApplication",
"identifier": "vdiffr",
"name": "vdiffr",
"version": ">= 1.0.0",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=vdiffr"
}
],
"softwareRequirements": {
"1": {
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
"version": ">= 3.5"
},
"SystemRequirements": null
},
"fileSize": "266.64KB",
"citation": [
{
"@type": "ScholarlyArticle",
"datePublished": "2023",
"author": [
{
"@type": "Person",
"givenName": [
"Martin",
"R."
],
"familyName": "Smith",
"email": "martin.smith@durham.ac.uk"
}
],
"name": "PlotTools: Add continuous legends to plots",
"identifier": "10.5281/zenodo.7803390",
"@id": "https://doi.org/10.5281/zenodo.7803390",
"sameAs": "https://doi.org/10.5281/zenodo.7803390",
"isPartOf": {
"@type": "PublicationIssue",
"datePublished": "2023",
"isPartOf": {
"@type": [
"PublicationVolume",
"Periodical"
],
"name": "Comprehensive R Archive Network"
}
}
}
]
}
GitHub Events
Total
- Issues event: 1
- Issue comment event: 3
- Push event: 10
Last Year
- Issues event: 1
- Issue comment event: 3
- Push event: 10
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Martin R. Smith | 1****9 | 61 |
| GitHub Actions | a****s@g****m | 4 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 3
- Total pull requests: 4
- Average time to close issues: about 17 hours
- Average time to close pull requests: about 4 hours
- Total issue authors: 2
- Total pull request authors: 1
- Average comments per issue: 2.0
- Average comments per pull request: 0.5
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 16 minutes
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 5.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ms609 (2)
- danpal96 (1)
Pull Request Authors
- ms609 (6)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 2,535 last-month
- Total docker downloads: 22,266
- Total dependent packages: 5
- Total dependent repositories: 0
- Total versions: 5
- Total maintainers: 1
cran.r-project.org: PlotTools
Add Continuous Legends to Plots
- Homepage: https://ms609.github.io/PlotTools/
- Documentation: http://cran.r-project.org/web/packages/PlotTools/PlotTools.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 0.3.1
published over 1 year ago