Skip to content
Back to formatted view

Raw Message

Message-ID: <8B26580C-2B9F-4F98-9BDA-ED60C1AA74B1@comcast.net>
Date: 2009-03-15T16:45:18Z
From: David Winsemius
Subject: xyplot of a specific ID number
In-Reply-To: <6050b5d20903150935j75486807ga98504ea5f44856@mail.gmail.com>

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