Learn R Programming

plotrix (version 1.41)

axis.break: Place a "break" mark on an axis

Description

Places a "break" mark on an axis on an existing plot

Usage

axis.break(axis=1,breakpos=NULL,bgcol="white",breakcol="black",
  style="slash",brw=0.02)

Arguments

axis
which axis to break
breakpos
where to place the break in user units
bgcol
the color of the plot background
breakcol
the color of the "break" marker
style
Either slash or zigzag
brw
break width relative to plot width

Value

  • nil

Examples

Run this code
plot(3:10)
 # put a break at the default axis and position
 axis.break()
 axis.break(2,2.9,style="zigzag")

Run the code above in your browser using DataLab