barplot2 | R Documentation |
barplot2 - Bar plot with upper error bars
barplot2(values, errors, lower = FALSE, flat = TRUE, ...)
values |
A matrix of values |
errors |
A matrix of values for upper error bar |
lower |
Boolean, whether the lower error bar should be plotted, default FALSE |
flat |
Boolean, whether the head of bars should be flat, default TRUE |
... |
Arguments to be passed to the core _barplot_ function |
A plot
values<-matrix(rnorm(10*4,mean=10),nrow=4,ncol=10)
errors<-matrix(runif(10*4),nrow=4,ncol=10)
colnames(values)<-colnames(errors)<-LETTERS[1:10]
barplot2(values,errors,main="Bar plot with error bars")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.