This document demonstrates the features of unifying plots in pander. First, if you do not want to deal with styling each of your images, just activate it: evalsOptions('graph.unify', TRUE).

Note: please install lattice and ggplot2 on your computer prior to trying to run all examples of this document.

Options

There are a bunch of options you might want to check out, these are:

Find more details on pander's homepage.

Default options

Not touching the above ones, let us check out how different plots look like by calling base R graphing function, lattice or ggplot2!

Histogram

Base R plot

WARNING1

lattice

ggplot2

Barplot

Base R plot

WARNING2

lattice

ggplot2

Points

Base R plot

WARNING3

lattice