Porter,Phillip C
2008-Oct-23 18:20 UTC
[R] I have an xyplot, I want to keep the format, but only show x or y
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? Thanks, Phillip
Deepayan Sarkar
2008-Oct-23 19:31 UTC
[R] I have an xyplot, I want to keep the format, but only show x or y
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
Deepayan Sarkar
2008-Oct-23 19:38 UTC
[R] I have an xyplot, I want to keep the format, but only show x or y
Sender: r-help-bounces at r-project.org On-Behalf-Of: deepayan.sarkar at gmail.com Subject: Re: [R] I have an xyplot, I want to keep the format, but only show x or y Message-Id: <eb555e660810231231u2f3ec67al8909a9322e3e7106 at mail.gmail.com> Recipient: nalbicelli at tricadiacdpcmanagement.com -------------------------------------------------------- This information is being sent at the recipient's request or with their specific understanding. The recipient acknowledges that by sending this information via electronic means, there is no absolute assurance that the information will be free from third party access, use, or further dissemination. This e-mail contains information that is privileged and/or confidential and may be subject to legal restrictions and penalties regarding its unauthorized disclosure or other use. You are prohibited from copying, distributing or otherwise using this information if you are not the intended recipient. Past performance is not necessarily indicative of future results. This is not an offer of or the solicitation for any security which will be made only by private placement memorandum that may be obtained from the applicable hedge fund. If you have received this e-mail in error, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system. Thank You. -------------- next part -------------- An embedded message was scrubbed... From: Deepayan Sarkar <deepayan.sarkar at gmail.com> Subject: Re: [R] I have an xyplot, I want to keep the format, but only show x or y Date: Thu, 23 Oct 2008 12:31:50 -0700 Size: 5837 URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20081023/71d0bc06/attachment-0003.mht>