Re: [R] Using factor levels as coordinates with geom_rect

2014-09-24 Thread Loris Bennett
Loris Bennett writes: > Hi, > > With ggplot2 I can use the following to create a rectangle > > geom_rect(aes(ymin=as.Date("8-Apr-2014", format="%d-%b-%Y"), > ymax=as.Date("30-Apr-2014", format="%d-%b-%Y"), > xmin="node002",xmax="node098"), > > where the x values a

[R] Using factor levels as coordinates with geom_rect

2014-09-23 Thread Loris Bennett
Hi, With ggplot2 I can use the following to create a rectangle geom_rect(aes(ymin=as.Date("8-Apr-2014", format="%d-%b-%Y"), ymax=as.Date("30-Apr-2014", format="%d-%b-%Y"), xmin="node002",xmax="node098"), where the x values are levels of a factor. This works if I