1 | theme_vl(base_size = 12)
|
base_size |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (base_size = 12)
{
bg_color = "#f0f0f0"
bg_rect = element_rect(fill = bg_color, color = bg_color)
theme_bw(base_size = base_size) + theme(plot.title = element_text(hjust = 0.5,
size = rel(1.5), face = "bold"), plot.subtitle = element_text(size = rel(1.1),
lineheight = 1.1, hjust = 0.5), plot.caption = element_text(size = rel(0.7),
margin = unit(c(1, 0, 0, 0), "lines"), lineheight = 1.1,
color = "#555555"), plot.margin = margin(1, 1, 0.2, 0.2,
"cm"), axis.text.x = element_text(size = rel(1), color = "black"),
axis.title.x = element_text(size = rel(1)), axis.text.y = element_text(size = rel(1),
color = "black"), axis.title.y = element_text(size = rel(1)),
panel.border = element_rect(fill = NA, color = "black"),
panel.grid.major = element_line(color = "grey80", size = 0.1),
panel.grid.minor = element_line(color = "grey90", size = 0.05,
linetype = 3), panel.spacing = unit(1.25, "lines"),
legend.background = bg_rect, legend.key.width = unit(1.5,
"line"), strip.background = element_blank())
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.