[R] Order of bars w geom_errorbarh ??
Using geom_errorbarh with ggplot, my plot has several error bars. For my presentation, the order of these bars from top to bottom is important. But errorbarh seems to put these in a random order I can't change. ( It does not follow the order in the data.frame. )How can I specify the order of the bars? Could I also specify the thickness of the bar lines? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] plot 8 functions on one graph?
I'm trying to use ggplot to make a single graph that plots 8 distributions, one above the other. I created a data.frame with 9 rows. The first is the coordinate along the x-axis. The next is the y-values for the first distribution. After that is the y-values for the next distribution... and so on. How do I call ggplot to use such a data.frame to make a single graph of 8 distributions? Should my data.frame be formed differently? .. judson blake [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.