View source: R/scale_fill_WB_c.R
scale_fill_WB_c | R Documentation |
Wrapper function to allow easy integration with ggplot2. Sets continuous fill scale.
scale_fill_WB_c(name, direction = 1, ...)
name |
Name of palette from WrensBookshelf. |
direction |
Direction you want the palette to proceed; 1 = direction shown in ShowBookshelf() or ShowBook(), -1 = reversed. |
... |
See scale_color_gradientn() for additional params. |
No return value, integrates WB_brewer into ggplot2 function.
ggplot2::ggplot(mtcars, ggplot2::aes(x = disp,y = wt, fill= mpg))+ ggplot2::geom_point(size=3, shape = 21)+ scale_fill_WB_c(name = "WhatWellBuild")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.