gap.barplot {plotrix}R Documentation

Display a barplot with a gap (missing range) on one axis

Description

Displays a barplot with a missing range.

Usage

 gap.barplot(y,gap,xaxlab,xtics,yaxlab,ytics,ylab,col,...)

Arguments

y data values
gap the range of values to be left out
xaxlab labels for the x axis ticks
xtics position of the x axis ticks
yaxlab labels for the y axis ticks
ytics position of the y axis ticks
ylab label for the y axis
col color(s) in which to plot the values
... arguments passed to plot.

Details

Displays a barplot omitting a range of values on the Y axis. Typically used when there is a relatively large gap in the range of values represented as bar heights. See axis.break for a brief discussion of plotting on discontinuous coordinates.

Value

nil

Author(s)

Jim Lemon

See Also

gap.barplot

Examples

 twogrp<-c(rnorm(10)+4,rnorm(10)+20)
 gap.barplot(twogrp,gap=c(8,16),xlab="Index",ytics=c(3,6,17,20),
  ylab="Group values",main="Barplot with gap")

[Package plotrix version 2.1-5 Index]