The second major plotting system

in R is called the Lattice System.

And this is implemented in the Lattice package.

So this, the idea here is actually quite different from the base plotting system.

Rather than piecing a plot together one by one through a

series of commands, every plot is constructed with a single function call.

And so the most commonly used function is going to be the function xyplot.

But there are other functions like bwplot, etc.

And so these functions basically construct an entire plot

all at once.

And so therefore, you have to specify a lot of information in the call to the

function, so that it has enough data to build a plot and in an appropriate way.

The last system is most useful for

what are called, Co-plots or Conditioning Plots.

Where you have, you want to look at the relationship between,

let's say x and y as it changes across levels of z.

And so, there, the, so you.

You're conditioning on different levels of z and then you're

looking at x and y at each one of those plots.

These are some times called panel plots.

because you're looking at the same thing in every

panel but just for different levels of a third variable.

And you can even combine variables so you can look at multiple factors.