[R] How can i draw a graph with high and low data points
Nathaniel Saxe
nathanielsaxe at hotmail.com
Fri Jul 9 12:39:20 CEST 2010
Hi Tal, Thanks for your help.
I've had a look at the site, and what i wanted to do was to plot X and Y
where X is a characters and Y is numeric. The problem I'm having now is that
the X axis isn't characters but just numbers from 1 onwards and when i plot
it, the data i have is in descending order which isn't shown on the graph.
I have this at the moment:
plot(1:nrow(dat),dat$Mean,type="b",xaxt="n",
ylim=c(min(dat$lci),max(dat$uci)),
xlab="",ylab="HR",)
It gives me sort of what I want. It has the Y values in descending order,
but it doesn't give me the text on the x axis and I was also thinking of
plotting the upper and lower confidence intervals with a line connecting the
two. I can add in the upper and lower CI values separately, but I don't know
how to join the two together.
--
View this message in context: http://r.789695.n4.nabble.com/How-can-i-draw-a-graph-with-high-and-low-data-points-tp2282524p2283194.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list