Description Usage Arguments Examples
This function allows easy modification of a minimalist 'ggplot2' theme - remove the grid, change fonts, etc.
1 2 3 4 5 6 7 8 9 10 11 12 |
grid |
Should the plot include gridlines? Defaults to FALSE. |
legend |
Should the legend be drawn? Defaults to TRUE. |
border |
Should a rectangular border be drawn around the plot? Defaults to TRUE. |
font |
A string detailing which font should be used on all plot text. Must be capitalized correctly. Defaults to NULL. |
axis.nums |
Should the axes show number labels? Defaults to TRUE. |
legend.pos |
Where should the legend be located? One of "left", "right", "bottom", "top". Defaults to "bottom". |
legend.rows |
How many rows shows the legend have? Mostly relevant for top/bottom-located legends. Defaults to 1. |
center.title |
Should the plot title and subtitle be centered? Defaults to TRUE. |
y.axis.horiz |
Should the y-axis be horizontal in order to make reading easier? Defaults to TRUE. |
1 | theme_jack(grid = TRUE, font = "Helvetica")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.