Learn R Programming

DescTools (version 0.99.56)

AxisBreak: Place a Break Mark on an Axis

Description

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

Usage

AxisBreak(axis = 1, breakpos = NULL, pos = NA, bgcol = "white", 
           breakcol = "black", style = "slash", brw = 0.02)

Arguments

axis

which axis to break.

breakpos

where to place the break in user units.

pos

position of the axis (see axis).

bgcol

the color of the plot background.

breakcol

the color of the "break" marker.

style

Either gap, slash or zigzag.

brw

break width relative to plot width.

Author

Jim Lemon and Ben Bolker

Details

The pos argument is not needed unless the user has specified a different position from the default for the axis to be broken.

Examples

Run this code
plot(3:10, main="Axis break test")

# put a break at the default axis and position
AxisBreak()
AxisBreak(2, 2.9, style="zigzag")

Run the code above in your browser using DataLab