colourbar_triangle

colourbar_triangle(...)

Arguments

...

parameters passed to ggplot2::guide_colourbar

Examples

library(ggplot2)

g <- ggplot(mtcars, aes(mpg, wt)) +
  geom_point(aes(colour = drat))

g + scale_colour_viridis_c(
  limits = c(3, 5), oob = scales::oob_squish,
  guide = colourbar_triangle()
)