Description Usage Arguments Examples
The pander ships with a default theme when the 'unify plots' option is
enabled via panderOptions
, which is now also available outside of pander internals, like evals
, eval.msgs
or Pandoc.brew
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
base_size |
base font size, given in pts. |
base_family |
base font family |
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 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | require("ggplot2")
if (require("pander")) {
p <- ggplot(mtcars, aes(x = mpg, y = wt)) +
geom_point()
p + theme_pander()
panderOptions("graph.grid.color", "red")
p + theme_pander()
p <- ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) +
geom_point()
p + theme_pander() + scale_color_pander()
ggplot(mpg, aes(x = class, fill = drv)) +
geom_bar() +
scale_fill_pander() +
theme_pander()
}
|
Loading required package: ggplot2
Loading required package: pander
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.