> Could anyone give suggestions how to plot a scatter plot with 1 standard > deviation for each point. To make it clearer, here is a simple example: the > scatterplot is plot(X, Y), but I want to add 1 standard deviation according > to the value of Z for each Y.
You can do this with ggplot2 with the following command: qplot(X, Y, data = df, geom="pointrange", min = Y - Z, max = Y + Z) You can see a few variations at http://had.co.nz/ggplot2/geom_linerange.html Hadley -- http://had.co.nz/ ______________________________________________ R-help@r-project.org mailing list 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.