error.crosses {psych} | R Documentation |
Given two vectors of data, plot the means and show standard errors in both X and Y directions.
error.crosses(x, y, labels = NULL, pos = NULL, arrow.len = 0.2, ...)
x |
A vector of summary statistics (from Describe) |
y |
A second vector of summary statistics (also from Describe) |
labels |
name the pair |
pos |
Labels are located where with respect to the mean? |
arrow.len |
Arrow length |
... |
Other parameters for plot |
For an example of two way error bars describing the effects of mood manipulations upon positive and negative affect, see http://personality-project.org/revelle/publications/happy-sad-appendix/FIG.A-6.pdf)
William Revelle
revelle@northwestern.edu
#desc <- describe(attitude) #x <- desc[1,] #y <- desc[2,] #plot(x$mean,y$mean) #in graphics window #error.crosses(x,y) #in graphics window