View source: R/5_plotFunctions.R
AddScale | R Documentation |
AddScale
AddScale(
p,
values = NULL,
colors = NULL,
limits = NULL,
showLegend = TRUE,
labelLegend = "",
type = "fill"
)
p |
ggplot object |
values |
Values used for the fill |
colors |
Colors to use (can be a vector or a function) |
limits |
Limits to use in the scale |
showLegend |
Boolean on whether to show the legend |
labelLegend |
Label to show as title of the legend |
type |
fill (default) or color |
ggplot object with scale added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.