knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Have you ever wanted your data visualizations to represent the beauty of Arizona? Maybe you haven't yet realized this desire, but this color palette package is perfect for you! This is a fun project for me that I put together to feature the many colors of the beautiful Arizona desert. Enjoy!
For more examples and beautiful Arizona photos visit https://sborrego.github.io/saguaRo/
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("sborrego/saguaRo")
Welcome to the desert! These are the color palettes and names available in saguaRo
.
library(saguaRo) all_saguaro()
Forgot the colors in the color palette of your choice? No problem! Just use the
function display_saguaro()
with any color palette name and see the beauty of
the desert appear before your eyes!
library(saguaRo) display_saguaro("bloom")
But how do you even use it? Use the function saguaro()
with the palette name and optionally the number of colors you would like.
library(saguaRo) n_list <- c(4, 3, 6, 5, 7) pie(n_list, main = "Super Basic Pie Chart", col = saguaro("bloom", length(n_list)))
Take your data visualizations even futher by extending the vibrant colors of
saguaRo
with the essential RColorBrewer
package.
library(saguaRo) library(RColorBrewer) num_data <- runif(20, 3, 12) pie(num_data, main = "Color Ramp Pie Chart", col = colorRampPalette(saguaro("mariposa"))(20))
Need to see your color palette of choice in action ASAP? Use plot_saguaro()
with any color palette name and plot selected boxplot (box), density (density), dotplot (gradient), or circular packing chart (circle).
plot_saguaro("oriole", "circle")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.