Description Usage Arguments Value Author(s) See Also Examples
Wrapper function for standardized use of barplot2() with lab defaults for display
1 2 3 4 |
Means |
matrix of means to plot. |
ylim |
vector of min and max for y axis |
lab.text |
label for x-axis |
main.text |
main label for plot. See barplot2 |
se |
standard error of mean for CI plotting, if needed |
bars.col,bars.density, bars.angle, bars.space |
color, density, angle, and space for bars. see barplot2 for additional detail |
scale.cex |
cex for x axis scale |
lab.font, lab.cex |
cex and font for x axis label |
ci.plot |
boolean to indicate if CIs should be plotted |
ci.col,ci.lty,ci.lwd,ci.width |
col, lty, lwd, and width of CI lines |
None
John J. Curtin jjcurtin@wisc.edu
barplot2(), figLabDefaults(), figSetDefaults(), figNewDevice(), figLines(),figLines()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ##not run
##Means = matrix(c(70,65,68,91,100,90), nrow=2,ncol=3, byrow=TRUE)
##colnames(Means) = c('ITI', 'CUE-', 'CUE+')
##rownames(Means) = c('Non-deprived', 'Deprived')
##se = matrix(c(5,10,4,5,10,4), nrow=2,ncol=3, byrow=TRUE)
##bars.col = c('gray', 'white', 'black')
##bars.density = c(-1,-1,10) #negative density suppresses lines
##bars.angle = c(0,0,45)
##figNewDevice()
##figBarPlot(Means,ylim=c(0,130), lab.text='Group', ci.plot=TRUE, se=se,
## bars.col=bars.col,bars.density=bars.density,
## bars.angle = bars.angle)
##figAxis(side=2,lab.text='Startle Response', scale.at=seq(0,120,by=20))
##figLegend('topright', legend=colnames(Means),fill=bars.col, angle=bars.angle,
## density=bars.density)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.