Description Usage Arguments Details
Function for designing a beautiful theme for ggplot2
1 2 3 | plot_theme(legend.position = "bottom", base.size = 10,
plot.margin = c(0.7, 1.2, 0.5, 0.5), color.theme = "white",
aspect.ratio = 1.61)
|
legend.position |
character string specifying the legend position (see details) |
base.size |
integer. Sets base font size (see details) |
plot.margin |
numeric vector. Length should be four (see details) |
color.theme |
character string specifying the (pre-defined) color theme - either "white" or "grey" |
The ggplot2 package comes with four options for setting the legend position - "left", "right", "bottom" and "top".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.