Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-26 Thread hadley wickham
And if lattice is ok then try this: library(lattice) xyplot(Consumption ~ Quarter, group = Year, data, type = o) Or you can use ggplot: install.packages(ggplot) library(ggplot) qplot(Quarter, Consumption, data=data,type=c(point,line), id=data$Year) Unfortunately this has uncovered a couple

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-26 Thread Constantinos Antoniou
Hello, I would like to make a question regarding the use of a grey background (by ggplot in this case, but also in other settings - I seem to remember a relevant lattice discussion). It seems that it is generally discouraged by journals. I guess one practical reason is that it makes photocopying

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-26 Thread Karl Ove Hufthammer
Constantinos Antoniou skreiv: I would like to make a question regarding the use of a grey background (by ggplot in this case, but also in other settings - I seem to remember a relevant lattice discussion). It seems that it is generally discouraged by journals. I guess one practical reason is

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-26 Thread hadley wickham
I would like to make a question regarding the use of a grey background (by ggplot in this case, but also in other settings - I seem to remember a relevant lattice discussion). It seems that it is generally discouraged by journals. I guess one practical reason is that it makes photocopying

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-26 Thread John McHenry
Hi Hadley, Thanks for your suggestion. The description of ggplot states: Description: ... It combines the advantages of both base and lattice graphics ... and you can still build up a plot step by step from multiple data sources So I thought I'd try to enhance

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-26 Thread Gabor Grothendieck
With the lattice package it would be done like this (where the panel.points function places large red pluses on the plot): xyplot(Consumption ~ Quarter, group = Year, data, type = o) trellis.focus(panel, 1, 1) panel.points(1:4, mean.per.quarter, pch = +, cex = 2, col = red) trellis.unfocus() On

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-25 Thread John McHenry
Gabor, Your suggestion: library(lattice) xyplot(Consumption ~ Quarter, group = Year, data, type = o) is very elegant indeed. Thanks, Jack. Gabor Grothendieck [EMAIL PROTECTED] wrote: And if lattice is ok then try this: library(lattice) xyplot(Consumption ~ Quarter, group = Year, data, type

[R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-24 Thread John McHenry
Hi WizaRds, I'd like to overplot UK fuel consumption per quarter over the course of five years. Sounds simple enough? Unless I'm missing something, the following seems very involved for what I'm trying to do. Any suggestions on simplifications? The way I did it is awkward mainly because of

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-24 Thread Gabor Grothendieck
Try: matplot(levels(data$Quarter), matrix(data$Consumption, 4), type = o) On 7/24/06, John McHenry [EMAIL PROTECTED] wrote: Hi WizaRds, I'd like to overplot UK fuel consumption per quarter over the course of five years. Sounds simple enough? Unless I'm missing something, the following

Re: [R] Overplotting: plot() invocation looks ugly ... suggestions?

2006-07-24 Thread Gabor Grothendieck
And if lattice is ok then try this: library(lattice) xyplot(Consumption ~ Quarter, group = Year, data, type = o) On 7/24/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Try: matplot(levels(data$Quarter), matrix(data$Consumption, 4), type = o) On 7/24/06, John McHenry [EMAIL PROTECTED]