Recent Releases of ggplot2planetpalettes
ggplot2planetpalettes - First release of ggplot2PlanetPalettes
ggplot2PlanetPalettes is an R package that provides a collection of color palettes inspired by the celestial bodies of the Solar System. Designed to enhance data visualization in ggplot2, this package includes both discrete and continuous palettes, optimized for accessibility and inspired by the unique visual characteristics of planets, moons, and asteroids.
Each palette reflects the unique colors and surface characteristics of a celestial body, such as Mars' red tones or Neptune's deep blues. Supported celestial bodies include: Planets: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune. Moons: Moon, Io, Europa, Ganymede, Callisto, Titan, Enceladus, Triton. Asteroids: Ceres, Vesta, Pallas. Support for Discrete and Continuous Scales:
Discrete palettes for categorical data visualization, using scalecolorplanetdiscrete(). Continuous palettes for gradient data, using scalecolorplanetcontinuous(). Colorblind-Friendly:
All palettes are designed to be accessible to individuals with color vision deficiencies.
Seamless Integration with ggplot2: Compatible with ggplot2's native scalecolor and scalefill functions for easy implementation in visualizations.
Examples
Discrete Palette for Earth:
ggplot(datadiscrete, aes(x, y, color = group)) + geompoint(size = 5) + scalecolorplanetdiscrete("Earth") + thememinimal()
Continuous Palette for Mars:
ggplot(datacontinuous, aes(x, y, color = z)) + geompoint(size = 3) + scalecolorplanetcontinuous("Mars") + thememinimal()
How to Install
You can install the package directly from GitHub:
install.packages("remotes") remotes::install_github("Antiprotony/ggplot2PlanetPalettes")
Known Issues
None reported yet. Feel free to submit any issues or feature requests via the GitHub issue tracker.
Acknowledgments
This package is inspired by the visual diversity of the Solar System and the power of data visualization with ggplot2. Special thanks to the R and ggplot2 communities for their continued support and innovation.
- R
Published by Antiprotony over 1 year ago