Skip to content

X multiple Y Scatter Plots

2 messages · Shankar Lanke, Douglas Bates

#
On Fri, Mar 18, 2011 at 7:57 PM, Shankar Lanke <shankarlanke at gmail.com> wrote:
Is it intentional that there are no Y2 values for the last 4
observations on ID 3?

If you want the data for the different ID's to appear in separate
panels of a single plot you can use

library(lattice)
xyplot(Y1 + Y2 ~ X | ID, myData)