Commons Library theme
1 2 3 4 5 6 7 | theme_commonslib(
background = "#edf7f2",
family = "Open Sans",
subtitle = TRUE,
axes = "bl",
grid = ""
)
|
background |
A hexadecimal color code for the canvas color. The default is "#edf7f2". |
family |
The font family name to use for the chart as a string. The default is "Open Sans". |
subtitle |
Boolean to indicate whether the plot has a subtitle. This argument controls the spacing after the title, so that it is smaller when a subtitle is present. The default is TRUE. |
axes |
A string to indicate which axes should have axis lines and ticks. Designate the axes to show by including a particular character in the string: "t" for top, "r" for right, "b" for bottom, "l" for left. You will need to position the axes correctly with ggplot, and turn on any secondary axes, in order for the specified axes lines and ticks to be displayed. The default is "bl", meaning both axes are shown by default. |
grid |
A string to indicate which gridlines should be shown. Designate which gridlines to show by including a particular character in the string: "h" for horizontal, "v" for vertical. The default is an empty string, meaning no gridlines are shown by default. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.