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@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
______________________________________________
R-help@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.