[R] GGPLOT Question
Philip Rhoades
phil at pricom.com.au
Sun Apr 6 14:03:38 CEST 2014
People,
I have this script:
library(ggplot2)
df <- read.table(text = " id min max
Sp1 8.5 13.2
Sp2 11.7 14.5
Sp3 14.7 17.7 ", header=TRUE)
ggplot(df) +
geom_crossbar(aes(ymin = min, ymax = max, x = id, y = min),
fill = "blue", fatten = 0)
- is there some way to get geom_crossbar to print horizontally? - I
couldn't find it . . and there doesn't seem to be a horizontal
equivalent?
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil at pricom.com.au
More information about the R-help
mailing list