s-news
[Top] [All Lists]

creating a legend

To: s-news@wubios.wustl.edu
Subject: creating a legend
From: Savitri Appana <saviappana@yahoo.com>
Date: Thu, 21 Dec 2006 10:27:39 -0800 (PST)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=ElA38ryHbJUVLfmOU/2/tDTwvm6OuhLm6a9WEMEkr4fsOX+VwfIqLwm04s+dP/0ubLyNIb8SG3vGAMgqPjxAtkmVJUIWi0aYHemSZYWPpq41Dtxmtnj7eLpZodjZAEGuSekR8ZNwm7bKA+jmTeOc2IvRZdoGH+R9zk911xRgd5o=;
Hello S+ users,

I need some help/suggestions on specifying a legend
specific to a panel in a trellis setting.

I'm generating some plots using the 'xyplot' function.
 My call to 'xyplot' and attempt with 'key' were as
follows:

xyplot( y ~ x | fac1 %in% fac2, 
data = myData, subset = myData$fac2 %in% c(5:8), 
panel = panel.superpose, groups = id, type = "b", 
xlab = "Time", ylab = "Mean", layout = c(1,1) )

key(text = list(c(as.character(unique(myData$id)))), 
points = list(pch = 1), col = c(1:5), 
border = T, space="top", columns=5 )

When I do this, I get a key with ALL the ids present
in the dataset.  Is is possible to subset the key with
ids specific to the panel?

Your suggestions are greatly appreciated.


Thank you,
Savi

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

<Prev in Thread] Current Thread [Next in Thread>
  • creating a legend, Savitri Appana <=