Thanks a lot for your help, the examples worked fine, just have to
change the colours to produce a b&w plot, and add the legend
On 05/02/2010 17:11, RICHARD M. HEIBERGER wrote:
Fran,
The trick is to use box.width, not box.ratio.
xyplot(Perc ~ as.POSIXct(hora,format="%d-%m-%Y %H:%M"),
d
Fran,
The trick is to use box.width, not box.ratio.
xyplot(Perc ~ as.POSIXct(hora,format="%d-%m-%Y %H:%M"),
data=digrate, groups=Drate, ## key=leg,
xlab="time of the day",
horizontal=FALSE,
scales=list(alternating=FALSE,
tck=c(1,0),
x=list(at=seq(r
Hi all,
Thanks for your answers, it worked, but still can't get the time scale on the x-axis, probably has
to do with the unit in the viewport or something like that. But following your recommendation I've
prepared some dummy data to go with the scripts. As before we have two graphs, one that ha
> SCript with xyplot:
> xyplot(Perc~as.POSIXct(hora,format="%d-%m-%Y
> %H:%M"),digrate,groups=digrate$Drate,key=leg,xlab="time of the day",
>
> scales=list(alternating=F,tck=c(1,0),x=list(at=seq(r[1],r[2],by="hour"),labels=format(seq(r[1],r[2],"hours"),format="%H:%M"))),
> panel=function
I'm trying to produce a barchart plot with groups, in which each group is placed in a particular
time scale in x-axis. If I use barchart directly it does not take the time scale. I've tried with
xyplot and adding a panel.barchart, I have the bars in the right place, but not the three groups I'm
5 matches
Mail list logo