Skip to contents

Finding friends Inspired Color Scales

Usage

scale_color_friends_c(...)

scale_fill_friends_c(...)

scale_color_friends_b(...)

scale_fill_friends_b(...)

scale_color_friends_d(...)

scale_fill_friends_d(...)

scale_colour_friends_d(...)

scale_colour_friends_c(...)

scale_colour_friends_b(...)

Arguments

...

Additional arguments to pass to ggplot2::binned_scale for _b, ggplot2::scale_[fill/color]_gradient for _c, or ggplot2::discrete_scale

Value

description

Examples

library(ggplot2)

ggplot(mpg, aes(cty)) +
geom_density(aes(fill=factor(cyl)), alpha=0.8) +
  labs(title="Density plot",
       subtitle="City Mileage Grouped by Number of cylinders",
       caption="Source: mpg",
       x="City Mileage",
       fill="# Cylinders") +
  facet_wrap(~(hwy > 29)) +
  theme_friends() +
  scale_fill_friends_d()