theme_poma | R Documentation |
A ggplot theme which allow custom yet consistent styling of plots in the POMA package and web app.
theme_poma(
base_size = 15,
axistitle = "xy",
axistext = "xy",
legend_position = "bottom",
legend_title = TRUE,
axis_x_rotate = FALSE,
margin = 2
)
base_size |
(integer) Base point size |
axistitle |
(string) Axis titles. Options include "none" or any combination of "X", "Y", "x" and "y". |
axistext |
(string) Axis text labels for values or groups. Options include "none" or any combination of "X", "Y", "x" and "y". |
legend_position |
Character. Legend position. See |
legend_title |
Logical. Include legend title. |
axis_x_rotate |
Logical. Rotate x-axis 45 degrees. |
margin |
(numeric) Should a margin of x be added to the plot? Defaults to 0 (no margin by default). |
## Not run:
library(ggplot2)
ggplot(diamonds, aes(cut)) + geom_bar() + theme_poma()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.