Legend Style Of GGplot
formatLegendOfGGplot.Rd
Style of legend is defined with argument legend
. Overwrites previous definitions of theme(legend)
Usage
formatLegendOfGGplot(plot, legend, scaleFUN = ggplot2::scale_color_manual, ...)
Arguments
- plot
(ggplot)
- legend
(list) named list with style definitions, or output of
plotLegendServer
- scaleFUN
(function) function to set scale, e.g.
ggplot2::scale_color_manual
- ...
additional element specifications not part of base ggplot2. In general, these should also be defined in the
element tree
argument. Splicing a list is also supported.