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
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
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
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
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
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
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
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
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
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]
10 matches
Mail list logo