Skip to contents

Avatar Inspired Color Scales

Usage

scale_fill_avatar(...)

scale_color_avatar(...)

Arguments

...

Additional arguments to pass to ggplot2::scale_[fill/color]_gradient()

Value

a ggplot scale object

Examples

library(ggplot2)

ggplot(mpg) +
  geom_point(aes(y = class, x = hwy, color = cyl)) +
  labs(title="MPG by Vehicle Type",
       caption="Source: mpg",
       x = "City Mileage",
       color ="# Cylinders") +
  scale_color_avatar()