Learn R Programming

corto (version 1.2.4)

barplot2: barplot2 - Bar plot with upper error bars

Description

barplot2 - Bar plot with upper error bars

Usage

barplot2(values, errors, lower = FALSE, flat = TRUE, ...)

Value

A plot

Arguments

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

Examples

Run this code
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