Displaying 1 result from an estimated 1 matches for "tp3015099p3015655".
2010 Oct 27
3
ggplot - unwanted sorted X values
Hi,
I have this script:
dat <- data.frame(X = halistat$Date,Y1 = halistat$avg,Y2 = halistat$stdev)
ggplot(data = dat, aes(x = X, y = Y1, ymin = Y1 - Y2, ymax = Y1 + Y2)) +
geom_point() + # points at the means
geom_line() + # if you want lines between pints
geom_errorbar() # error bars, Y1 - Y2 and Y1 + Y2
halistat$Date values:
29/1/10
21/2/10
30/3/10
30/4/10
30/5/10
In the resulted