Learn R Programming

plotrix

plotrix is an R package that provides many plotting, labeling, and axis & color scaling functions.

Installation

You can install the current release of plotrix from CRAN with:

install.packages("plotrix")

You can install the development version of plotrix from GitHub with:

# install.packages("devtools")
devtools::install_github("plotrix/plotrix")

Authors

The original author and maintainer of plotrix, Jim Lemon, passed away in September 2023.

Currently it is being maintained by Duncan Murdoch. Please submit bug reports to https://github.com/plotrix/plotrix/issues.

Other contributors include:

Ben Bolker [ctb],
Sander Oom [ctb],
Eduardo Klein [ctb],
Barry Rowlingson [ctb],
Hadley Wickham [ctb],
Anupam Tyagi [ctb],
Olivier Eterradossi [ctb],
Gabor Grothendieck [ctb],
Michael Toews [ctb],
John Kane [ctb],
Rolf Turner [ctb],
Carl Witthoft [ctb],
Julian Stander [ctb],
Thomas Petzoldt [ctb],
Remko Duursma [ctb],
Elisa Biancotto [ctb],
Ofir Levy [ctb],
Christophe Dutang [ctb],
Peter Solymos [ctb],
Robby Engelmann [ctb],
Michael Hecker [ctb],
Felix Steinbeck [ctb],
Hans Borchers [ctb],
Henrik Singmann [ctb],
Ted Toal [ctb],
Derek Ogle [ctb],
Darshan Baral [ctb],
Ulrike Groemping [ctb],
Bill Venables [ctb],
The CRAN Team [ctb].

Copy Link

Version

Install

install.packages('plotrix')

Monthly Downloads

106,892

Version

3.8-13

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Duncan Murdoch

Last Published

November 15th, 2025

Functions in plotrix (3.8-13)

box.heresy

Display a sort of box plot
bin.wind.records

Classify wind direction and speed records
boxed.labels

Place labels in boxes
binciW

Binomial confidence limits
binciWu

Upper binomial confidence limit
binciWl

Lower binomial confidence limit
brkdn.plot

A point/line plotting routine
categoryReshape

Convert object label/attribute label coding.
brkdnNest

Perform a nested breakdown of numeric values
bumpchart

Display a "bumps" (sequential ranking) chart
clean.args

Remove inappropriate arguments from an argument list
cluster.overplot

Shift overlying points into clusters
color.axis

Display an axis in a specified color
centipede.plot

Display a centipede plot
clustered.dotplots

Display the frequencies of two categories
color.legend

Legend matching categories or values to colors
color.id

Identify closest match to a color
clplot

Plot lines with colors determined by values.
color.gradient

Calculate an arbitrary sequence of colors
clock24.plot

Plot values on a 24 hour "clockface"
count.overplot

Show overlying points as counts
dendroPlot

Display distributions as dendrites
corner.label

Find corner locations and optionally display a label
color2D.matplot

Display a numeric matrix as color matrix
diamondplot

Plot multiple variables as polygons on a radial grid
death_reg

Death registrations from 1996 to 2010
cylindrect

Display an apparent cylinder
color.scale

Turn values into colors.
color.scale.lines

Line segments with scaled colors
densityGrid

Display a matrix of cell values as symbols.
draw.tilted.sector

Display a 3D pie sector
draw.radial.line

Draw a radial line
draw.ellipse

Draw ellipse
draw.circle

Draw a circle
dispersion

Display a measure of dispersion.
do.first

Execute a graphic function on a plot
drawNestedBars

Display nested bars
drawSectorAnnulus

Display a radial pie sector
dotplot.mtb

Minitab style dotplots.
draw.arc

Draw arc
floating.pie

Display a floating pie chart
fill.corner

Fill a "corner" of a matrix with values
gantt.chart

Display a Gantt chart
find_max_cell

Maximum (or minimum) value cell in a matrix.
ehplot

Engelmann-Hecker-Plot - EH-Plot
fullaxis

Add an axis with a line to the edge of the plot
emptyspace

Find an empty space on a plot
election

Assign party members to seats
feather.plot

Display vectors along a horizontal reference line
fan.plot

Display a fan plot
gap.boxplot

Display a boxplot with a gap (missing range)
get.tablepos

Get the position for a legend or table
gap.barplot

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

Enter three proportion data - usually soil textures
gap.plot

Display a plot with one or two gaps (missing ranges) on one axis
get.soil.texture

Enter soil texture data
get.breaks

Get the breakpoints for a weighted histogram
gap_barp

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

Calculate the midpoints and limits for a centipede plot
get.gantt.info

Gather the information to create a Gantt chart
getFigCtr

Get coordinates in the figure region in user units.
intersectDiagram

Display set intersections
get_axispos3d

Get axis positions on a 3D plot
jiggle

Calculate equally spaced values within a range.
histStack

Histogram "stacked" by categories
getIntersectList

Enter a set intersection list
hexagon

Draw a hexagon
getYmult

Correct for aspect and coordinate ratio
gradient.rect

Display a rectangle filled with an arbitrary color gradient
getMarginWidth

Find the margin width necessary to fit text or a legend next to a plot
lengthKey

Key for interpreting lengths in a plot
kiteChart

Magnitude by position chart.
l2010

World lightning strike data from 2010
makeIntersectList

Count set intersections
joyPlot

Display a series of density curves.
makeDensityMatrix

Compute a matrix of counts from a list of x,y positions
ladderplot

Ladder Plot
legendg

Legend with grouped bars, lines or symbols
labbePlot

Display a L'Abbe plot
maxEmptyRect

Find an empty space on a plot
multhist

Plot a multiple histogram, as a barplot
oz.windrose.legend

Display an Australian wind rose legend
oz.windrose

Display an Australian wind rose
pasteCols

Paste the columns of a matrix together
mtext3d

Display text in the margins of a 3D plot
p2p_arrows

Draw arrows between points
multsymbolbox

Draw boxes filled with symbols
panes

Prepare a "panel" type layout
multivari

Function to draw a multivari chart
paxis3d

Display text in the margins of a 3D plot
plotH

Scatterplot with histogram-like bars.
perspx

Display perspective plot
placeLabels

Place labels in boxes
plot_bg

Add a background color to a plot
polar.plot

Plot values on a circular grid of 0 to 360 degrees
plotCI

Plot confidence intervals/error bars
pie3D.labels

Display labels on a 3D pie chart
plotrix-package

Specialized plots and plotting accessories
pie.labels

Place labels on a pie chart
pie3D

Display a 3D pie chart
radial.grid

Display a radial grid
radial.plot.labels

Display labels on a circular grid
radial.pie

Plot sectors/annuli on a circular grid of 0 to 2*pi radians
polygon.shadow

Display a shadow effect for an arbitrary polygon
propbrk

Calculate the proportion of specified values in a vector
print.brklist

Display the output of brkdnNest
radial.plot

Plot values on a circular grid of 0 to 2*pi radians
psegments3d

Draw segments on a 3D plot
pyramid.plot

Pyramid plot
ptext3d

Display text on a 3D plot
size_n_color

Display circles with specified size and color
revaxis

Plot with axis direction(s) reversed
seats

Arrange N seats in M semicircular rows
sizetree

Display a hierarchical breakdown of disjunct categories
rescale

Scale numbers into a new range
rectFill

Draw a rectangle filled with symbols
ruginv

Add an Inverse Rug to a Plot
raw.means.plot

raw.means.plot: Raw-Means Plots for Experimental Designs
radialtext

Display text in a radial line
sizeplot

Plot with repeated symbols by size
spreadout

Spread out a vector of numbers to a minimum interval
soil.texture.uk

Soil texture triangle plot using UK conventions
sliceArray

Slice an array
staircase.plot

Display a staircase plot
soils

Soil texture data from 125 soils
stackpoly

Display the columns of a matrix or data frame as stacked polygons
spread.labels

Spread labels for irregularly spaced values
soil.texture

Soil texture triangle plot
smoothColors

Build a vector of color values
staircasePlot

Display a staircase plot
symbolbarplot

barplot filled with symbols
symbolbox

Draw a box filled with symbols
thigmophobe

Find the direction away from the closest point
taylor.diagram

Taylor diagram
starPie

A pie-like graphic object
textbox

Add text box
tab.title

Display the title of a plot as a colored tab
staxlab

Place staggered or angled labels on an axis
std.error

Calculate standard error of the mean
sumbrk

Count specified values in a vector
tsxpos

Calculate equispaced x positions.
triax.abline

Lines for triangle plot
triax.fill

Triangle plot fill
triax.frame

Triangle plot frame
twoord.stackplot

Multiple (stack) plot with two ordinates
twoord.plot

Plot with two ordinates
triax.points

Triangle plot points
thigmophobe.labels

Place labels away from the nearest point
triax.plot

Triangle plot
valid.n

Find the number of valid (not NA) values
vectorField

Display magnitude/direction vectors
zoomInPlot

Display a plot with a rectangular section expanded in an adjacent plot
weighted.hist

Display a weighted histogram
violin_plot

Display a "violin" plot
axis.break

Place a "break" mark on an axis
add.ps

add p-values from t-tests
barlabels

Label the bars on a barplot
ablineclip

Add a straight line to a plot
arctext

Display text on a circular arc
axis.mult

Display an axis with values having a multiplier
barp

A bar plotting routine
battleship.plot

Display a matrix of values as the widths of stacked rectangles
addtable2plot

Add a table of values to a plot
barNest

Display a nested breakdown of numeric values