This function retrieves a list of thematic elements to be used by the doc_plot function. The elements correspond to either a given theme (such as from the ggplot2 or ggthemes packages) or a custom theme with relevant parameters also given.
1 2 3 4 5 6 7 | get_theme(theme = "gray", base_size = NA, base_family = NA,
horizontal = NA, dkpanel = NA, stata = NA, gray_bg = NA,
bgcolor = NA, nomargin = NA, ff = NA, fc = NA, fs = NA, gM = NA,
gm = NA, gc = NA, gl = NA, boxes = NA, bc = NA, pc = NA,
lp = NA, axis = NA, light = NA, scheme = NA, ticks = NA,
color = NA, title_family = NA, bg = NA, fg = NA, cex = NA,
fill = NA, col = NA, lwd = NA, lty = NA)
|
theme |
|
base_size |
base font size |
base_family |
base font family |
horizontal |
|
dkpanel |
|
stata |
|
gray_bg |
|
bgcolor |
The background color of plot. One of |
nomargin |
suppress the white space around the plot (boolean) |
ff |
font family, like |
fc |
font color (name or hexa code) |
fs |
font size (integer). Deprecated: use |
gM |
major grid (boolean) |
gm |
minor grid (boolean) |
gc |
grid color (name or hexa code) |
gl |
grid line type ( |
boxes |
to render a border around the plot or not |
bc |
background color (name or hexa code) |
pc |
panel background color (name or hexa code) |
lp |
legend position |
axis |
axis angle as defined in |
light |
|
scheme |
One of "s2color", "s2mono", "s1color", "s1rcolor", or "s1mono", "s2manual", "s1manual", or "sj" |
ticks |
|
color |
The background color of plot. One of |
title_family |
Plot title font family. |
bg |
|
fg |
|
cex |
|
fill |
|
col |
|
lwd |
|
lty |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.