powered by
barplot2 - Bar plot with upper error bars
barplot2(values, errors, lower = FALSE, flat = TRUE, ...)
A plot
A matrix of values
A matrix of values for upper error bar
Boolean, whether the lower error bar should be plotted, default FALSE
Boolean, whether the head of bars should be flat, default TRUE
Arguments to be passed to the core _barplot_ function
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")
Run the code above in your browser using DataLab