companycolors
is an R helper package for using company-specific color palettes in charts.
measure_colors()
#> Lime Green Navy Hunter Black Gray Taupe
#> "#93d500" "#00205c" "#00945e" "#1c1f2a" "#7b868c" "#cfd2d3"
#> Web White
#> "#eff0f1" "#ffffff"
measure_colors("Navy")
#> Navy
#> "#00205c"
measure_palette("secondary", reverse = TRUE)(4)
#> [1] "#EFF0F1" "#C8CCCF" "#A1A9AD" "#7B868C"
measure_palette_preview(palette = "mixed")
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Sepal.Length)) +
geom_point(size = 4, alpha = 0.6) +
scale_color_measure(discrete = FALSE, palette = "mixed", reverse = TRUE)
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
geom_point(size = 4) +
scale_color_measure(palette = "primary", reverse = FALSE)
Based on this great @drsimonj blog post
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.