psych (version 1.0-42)

error.crosses: Plot x and y error bars

Description

Given two vectors of data, plot the means and show standard errors in both X and Y directions.

Usage

error.crosses(x, y, labels = NULL, pos = NULL, arrow.len = 0.2, ...)

Arguments

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

Details

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)

Examples

Run this code
#desc <- describe(attitude)
#x <- desc[1,]
#y <- desc[2,]
#plot(x$mean,y$mean)   #in graphics window
#error.crosses(x,y)    #in graphics window

Run the code above in your browser using DataLab