An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090315/92147237/attachment-0002.pl>
xyplot of a specific ID number
3 messages · Sachi Ito, David Winsemius, Gabor Grothendieck
Would have help if you had offered complete output for your efforts at using subset. This should work (on the assumption that ID is of type numeric):
xyplot(PA ~ CRPC + CRPT , data = subset(redinteract, ID == 301) )
On Mar 15, 2009, at 12:35 PM, Sachi Ito wrote:
Dear R list members, I have a question regarding xyplot. I managed to make a xyplot of all the IDs by using the syntax below: xyplot(PA ~ CRPC + CRPT | ID, data = redinteract) Now, I'd like to make a graph of a specific ID number (e.g., only ID number 301). I thought I could use "subset", but it seems to be not working. Could anyone let me know how I can make a graph of a specific ID? Thank you for your help in advance! [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD Heritage Laboratories West Hartford, CT
Using built in data frame CO2 try this where Type is a 2 level factor. library(lattice) xyplot(uptake ~ conc | Type, CO2) xyplot(uptake ~ conc | Type, CO2)[1] xyplot(uptake ~ conc | Type, CO2)[2]
On Sun, Mar 15, 2009 at 12:35 PM, Sachi Ito <s.ito.tcu at gmail.com> wrote:
Dear R list members, I have a question regarding xyplot. ?I managed to make a xyplot of all the IDs by using the syntax below: xyplot(PA ~ CRPC + CRPT | ID, data = redinteract) Now, I'd like to make a graph of a specific ID number (e.g., only ID number 301). ?I thought I could use "subset", but it seems to be not working. ?Could anyone let me know how I can make a graph of a specific ID? Thank you for your help in advance! ? ? ? ?[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.