colourbar_triangle.Rd
colourbar_triangle
colourbar_triangle(...)
parameters passed to ggplot2::guide_colourbar
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()
)