Re: [R] lattice barchart using a time scale in x axis

2010-02-05 Thread Fran Velasco
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

Re: [R] lattice barchart using a time scale in x axis

2010-02-05 Thread Fran Velasco
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

[R] lattice barchart using a time scale in x axis

2010-02-04 Thread Fran Velasco
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