[R] xyplot of a specific ID number
David Winsemius
dwinsemius at comcast.net
Sun Mar 15 17:45:18 CET 2009
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
More information about the R-help
mailing list