[R] I have an xyplot, I want to keep the format, but only show x or y
Deepayan Sarkar
deepayan.sarkar at gmail.com
Thu Oct 23 21:31:50 CEST 2008
On Thu, Oct 23, 2008 at 11:20 AM, Porter,Phillip C <pcporter at ufl.edu> wrote:
> Good Morning,
> I am using xyplot to show two variables for a large number of subjects.
>
> Currently I am using xyplot(y~x|as.factor(ID), layout=c(7,9)) to give me a
> little plot of the x and y factors for each ID.
>
> The purpose of the plot is to let the PI quickly look through the data for
> irregularities.
>
> The good news is that they like the layout of the xyplot, but they don't
> want to have to think in two directions at once.
>
> xyplot(x|as.factor(ID), layout=c(7,9)) and xyplot(y|as.factor(ID),
> layout=c(7,9)) would be perfect, but that isn't what xyplot does. What
> function can I use to replicate the layout of the xyplot, but only show one
> variable per subject?
There are several other functions for visualization of univariate
data; you will need to decide which one is suitable for your needs,
e.g.,
densityplot(~x | as.factor(ID))
qqmath(~x | as.factor(ID))
bwplot(~x | as.factor(ID))
bwplot(as.factor(ID) ~ x)
stripplot(as.factor(ID) ~ x)
-Deepayan
More information about the R-help
mailing list