[R] xyplot() and confidence interval polygons

2011-10-13 Thread Martin Ralphs
el.bands function as I have defined it. Any guidance much appreciated! Martin Ralphs Methodology Directorate Office for National Statistics UK # Setup package libraries... library(lattice) # Setup sample dataset... area <- c(rep("A1",7),rep("A2",7),rep("A3",7),

Re: [R] Numeric vector converted mysteriously to characters in data frame?

2011-03-17 Thread Martin Ralphs
; > without the cbind. > > Sent from my iPad > > On Mar 16, 2011, at 18:12, Martin Ralphs wrote: > > > Dear R Help, > > > > I would be very grateful if somebody could explain why this is happening.  I > > am trying to plot a lattice barchart of a vector of numbers

[R] Numeric vector converted mysteriously to characters in data frame?

2011-03-16 Thread Martin Ralphs
Dear R Help, I would be very grateful if somebody could explain why this is happening. I am trying to plot a lattice barchart of a vector of numbers with age bandings that I have brought together into a data frame. When I plot the variables in their raw vector form, it works. When I try to plot