Re: [R] xYplot help

2013-03-02 Thread Frank Harrell
xYplot has many options that are passed to panel.xYplot. Did you read the documentation? You can suppress labels, use an automatically generated Key() function to control where you want keys, and use several other options. Start with label.curve=FALSE and go from there. Frank bwr87 wrote > I'm

Re: [R] xyplot help

2013-02-20 Thread Duncan Mackay
Hi Peter As for more suggestions library(latticeExtra) useOuterStrips( xyplot(prec~month|year*paste(lat,lon), data=ndata, as.table = T, type = c("l", "l","p"), ylim=c(min, max), layout=c(1,4)) ) have a look at ?strip.custom and ?strip.default as well as ?useOuterStrips for customi

Re: [R] xyplot help

2013-02-20 Thread Peter Maclean
I am ploting gridded time series data. I would like the actual lat and lon value appear on the graph-if possible inside the graph as numbers. If there is also more elegant ways to plot the graphs I will appreciate more suggestions. # library(ggplot2) library(lattic

Re: [R] xyplot help

2010-07-08 Thread array chip
ines(x,-1.324+0.1117*x-0.0006357*x*x) }) type='b' doesn't give me a smooth line, so it didn't produce what I want. Thanks John - Original Message From: Bert Gunter To: array chip ; r-help@r-project.org Sent: Thu, July 8, 2010 4:25:51 PM Subject: RE: [R] xypl

Re: [R] xyplot help

2010-07-08 Thread Bert Gunter
Read the "panel" part of ?xyplot carefully and note ?panel.superpose. Typically, when you have a groups argument your panel function must be of the form panel = function(x,y,...){ panel.superpose(x,y,...) etc. } However, I think it might all happen automagically if you do the cal

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2010-01-05 Thread Santosh
Hi.. thanks for the tips.. that variation works. How can I control "pch", "lty" and "col" for each member (gp1) in the group (paste(gp2, gp3))? Regards,Santosh On Tue, Jan 5, 2010 at 2:15 AM, Felix Andrews wrote: > You should reshape the data into a long format, and an easy way to do > that is t

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2010-01-05 Thread Felix Andrews
You should reshape the data into a long format, and an easy way to do that is to use the 'reshape' package: library(reshape) mdat <- melt(dat, measure.vars = c("y1", "y2", "y3")) I'm still not sure what you want in the plot. Confusingly, your last example dropped the "ID" you referred to earlier,

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2010-01-05 Thread Santosh
Thanks for your email.. Yes, I am looking for lattice version of matplot... Attached are some codes for simplicity for rapid testing..Any suggestions would be highly appreciated... library(lattice) dat <- data.frame(x = rep(1:10,2), y1 = rnorm(20), y2=rnorm(20,s

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2010-01-04 Thread Dennis Murphy
Hi: I think Santosh wants a Lattice version of matplot. I didn't find anything with help.search(), though... Dennis On Mon, Jan 4, 2010 at 8:14 PM, Santosh wrote: > Hi, > Thanks for your email.. > > Each panel (in a multiple panel) is identified by "DS1, DS2 & DS3" in the > dataset sent earlie

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2010-01-04 Thread Duncan Mackay
Hi I missed the earlier emails and I am not too sure of what you want but have a look at requiire(latticeExtra) ? useOuterStrips It may improve the layout and readability Duncan Mackay Department of Agronomy and Soil Science University of New England ARMIDALE NSW 2351 Email Home: mac...@nor

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2010-01-04 Thread Santosh
Hi, Thanks for your email.. Each panel (in a multiple panel) is identified by "DS1, DS2 & DS3" in the dataset sent earlier. I would like an overlay of Y1, Y2 & Y3 (each by different lines) for each ID in the group. Each ID in the group is represented by a color. Regards & Thanks, Santosh On Mon,

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2010-01-04 Thread Peter Ehlers
Can you clarify how many curves you want in each panel? You have 3 Ys and your original email indicated at least 7 ID values. Do you really want 21 curves in each panel? Or do you want separate panels for the Ys? Re your code: note that, regarding a formula of the type y1 + y2 ~ x, ?xyplot says:

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2010-01-04 Thread Santosh
Hi Jim and others, I tried suggestions and somehow the graphs do not seem to be aligned on X-axis (i.e. they appear to be shifted on x-axis).. I guess panel.xyplot or panel.superpose is needed? I am not sure what the "group" variable be panel.xyplot, whether it is the "ID" or the "newFactor". I tr

Re: [R] xyplot - help with multiple Y's vs. X of a member data in multiple panels

2009-12-31 Thread jim holtman
I am not too sure if this is what you are after, but I just created a new factor for the panel: # create a new factor d1$newFactor <- factor(paste(d1$DS1, "+", d1$DS2, "+", d1$DS3)) xyplot(Y1+Y2+Y3~X1|newFactor,data=d1,group=ID) On Thu, Dec 31, 2009 at 6:25 AM, Santosh wrote: > Dear R experts,

Re: [R] xyplot help - colors and break in plot

2009-09-29 Thread Tim Clark
n you have data that groups in clusters separated by a large range. Aloha, Tim Tim Clark Department of Zoology University of Hawaii --- On Mon, 9/28/09, Felix Andrews wrote: > From: Felix Andrews > Subject: Re: [R] xyplot help - colors and break in plot > To: "Tim Cla

Re: [R] xyplot help - colors and break in plot

2009-09-28 Thread Felix Andrews
2009/9/29 Tim Clark : > Dear List, > > I am new to lattice plots, and am having problems with getting my plot to do > what I want. Specifically: > > 1. I would like the legend to have the same symbols as the plot. I tried > simpleKey but can't seem to get it to work with autoKey. Right now my

Re: [R] xyplot help

2008-07-22 Thread Felix Andrews
v <- factor(1:2) xyplot(1:2 ~ 1:2 | v, strip=strip.custom(strip.names=TRUE, sep="=")) or v <- shingle(1:2) xyplot(1:2 ~ 1:2 | v, strip=strip.custom(strip.levels=TRUE, sep="=")) On Tue, Jul 22, 2008 at 4:26 PM, <[EMAIL PROTECTED]> wrote: > I have a question about xyplot. Suppose I want to p