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()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.