Re: [R] xyplot question

2011-01-19 Thread Saiwing Yeung
> This is a version of FAQ 7.22: you need to tell R to print lattice graphics. > Without the next statement, the result would be auto-printed. > > Duncan Murdoch That fixed it. Thank you again. Sorry for not reading the FAQ. Saiwing __ R-help@r-pro

Re: [R] xyplot question

2011-01-19 Thread Duncan Murdoch
On 11-01-19 4:54 PM, Saiwing Yeung wrote: Hi all, I had a weird problem with xyplot and I am wondering if anyone can help me figure out what's wrong here. Basically if I call xyplot() inside a function and I call quartz() after, then the previous xyplot() does not do anything. A short demo of

Re: [R] xyplot question

2009-07-01 Thread Gabor Grothendieck
Try this: Key <- list(text = list(c("FDP", "FDL")), points = list(pch = c("*", "o"), col = c("red", "blue"), cex = 2), space = "right") xyplot(S ~ t | ID, key = Key, panel = function(...) { panel.points(..., col = rep(c("red", "blue"), 3:4),

Re: [R] xyplot question

2007-09-19 Thread Wayne.W.Jones
The following link is an excellent reference which gives R code for making different plots in R. http://addictedtor.free.fr/graphiques/thumbs.php Is it something like this you want: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=52 The code can be found to do this on the webp

Re: [R] xyplot question

2007-09-18 Thread Peter Alspach
Raymond I had the same question a while ago and found the answer by typing RSiteSearch('xyplot error bars') Peter Alspach > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Raymond Balise > Sent: Wednesday, 19 September 2007 10:52 a.m. > To: [EMAI

Re: [R] xyplot question

2007-09-14 Thread Deepayan Sarkar
On 9/14/07, Raymond Balise <[EMAIL PROTECTED]> wrote: > I am tring to do an xyplot where I want to plot 5 dots in each pane of > the trellice and the dots need to have lines (whiskers) extending up > and down at each point(plus a 45 degree reference line). The data > frame is set up with the varia

Re: [R] xyplot question

2007-09-14 Thread hadley wickham
Hi Raymond, It isn't lattice, but this is fairly easy to do with ggplot2: install.packages("ggplot2") library(ggplot2) qplot(x, y, facets = group ~ Method) + geom_linerange(aes(min = lcl, max=ucl)) + geom_abline() See more at http://had.co.nz/ggplot2 Hadley On 9/14/07, Raymond Balise <[EMAIL

Re: [R] xyplot question

2007-09-11 Thread Deepayan Sarkar
On 9/11/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote: > Thanks Deepyan. I am doing it in source but I didn't realize that that > was a function. Thanks so much. You might try source(..., echo=TRUE) if you want to mimic console evaluation. -Deepayan

Re: [R] xyplot question

2007-09-11 Thread Leeds, Mark (IED)
Thanks Deepyan. I am doing it in source but I didn't realize that that was a function. Thanks so much. -Original Message- From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 11, 2007 12:38 PM To: Leeds, Mark (IED) Cc: [EMAIL PROTECTED] Subject: Re: [R] x

Re: [R] xyplot question

2007-09-11 Thread Deepayan Sarkar
On 9/11/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote: > I have the code below and it works fine if I print the xyplot but if I > take the print out, then I just get a blank > pdf. The same holds if I just send the plot to the console without the > print ( I get nothing ). My question is whether

Re: [R] xyplot question

2007-09-11 Thread Stefan Grosse
Original Message Subject: [R] xyplot question From: Leeds, Mark (IED) <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: 11.09.2007 18:00 > > load("stocks.dat") > > pdf('temp.pdf', width=10, height=8) > does ist work with postscript? something like: postscript("temp.ps", width =