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

89,715

Version

3.8-14

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Duncan Murdoch

Last Published

February 13th, 2026

Functions in plotrix (3.8-14)

clock24.plot

Plot values on a 24 hour "clockface"
color.id

Identify closest match to a color
cluster.overplot

Shift overlying points into clusters
color.scale.lines

Line segments with scaled colors
draw.circle

Draw a circle
color.scale

Turn values into colors.
dendroPlot

Display distributions as dendrites
draw.tilted.sector

Display a 3D pie sector
death_reg

Death registrations from 1996 to 2010
box.heresy

Display a sort of box plot
boxed.labels

Place labels in boxes
clustered.dotplots

Display the frequencies of two categories
draw.radial.line

Draw a radial line
color.gradient

Calculate an arbitrary sequence of colors
dispersion

Display a measure of dispersion.
color.legend

Legend matching categories or values to colors
fullaxis

Add an axis with a line to the edge of the plot
draw.ellipse

Draw ellipse
clean.args

Remove inappropriate arguments from an argument list
centipede.plot

Display a centipede plot
get.soil.texture

Enter soil texture data
get.segs

Calculate the midpoints and limits for a centipede plot
feather.plot

Display vectors along a horizontal reference line
do.first

Execute a graphic function on a plot
fill.corner

Fill a "corner" of a matrix with values
get_axispos3d

Get axis positions on a 3D plot
gantt.chart

Display a Gantt chart
getYmult

Correct for aspect and coordinate ratio
getMarginWidth

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

Display a matrix of cell values as symbols.
diamondplot

Plot multiple variables as polygons on a radial grid
ehplot

Engelmann-Hecker-Plot - EH-Plot
gradient.rect

Display a rectangle filled with an arbitrary color gradient
legendg

Legend with grouped bars, lines or symbols
ladderplot

Ladder Plot
get.breaks

Get the breakpoints for a weighted histogram
maxEmptyRect

Find an empty space on a plot
makeIntersectList

Count set intersections
election

Assign party members to seats
gap_barp

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

Gather the information to create a Gantt chart
hexagon

Draw a hexagon
gap.plot

Display a plot with one or two gaps (missing ranges) on one axis
panes

Prepare a "panel" type layout
count.overplot

Show overlying points as counts
p2p_arrows

Draw arrows between points
oz.windrose

Display an Australian wind rose
oz.windrose.legend

Display an Australian wind rose legend
perspx

Display perspective plot
pie.labels

Place labels on a pie chart
plot_bg

Add a background color to a plot
plotH

Scatterplot with histogram-like bars.
mtext3d

Display text in the margins of a 3D plot
multhist

Plot a multiple histogram, as a barplot
radial.plot.labels

Display labels on a circular grid
radial.plot

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

Find an empty space on a plot
fan.plot

Display a fan plot
drawSectorAnnulus

Display a radial pie sector
drawNestedBars

Display nested bars
cylindrect

Display an apparent cylinder
print.brklist

Display the output of brkdnNest
polygon.shadow

Display a shadow effect for an arbitrary polygon
gap.barplot

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

Display set intersections
jiggle

Calculate equally spaced values within a range.
gap.boxplot

Display a boxplot with a gap (missing range)
seats

Arrange N seats in M semicircular rows
propbrk

Calculate the proportion of specified values in a vector
histStack

Histogram "stacked" by categories
psegments3d

Draw segments on a 3D plot
color2D.matplot

Display a numeric matrix as color matrix
placeLabels

Place labels in boxes
clplot

Plot lines with colors determined by values.
l2010

World lightning strike data from 2010
labbePlot

Display a L'Abbe plot
rectFill

Draw a rectangle filled with symbols
multsymbolbox

Draw boxes filled with symbols
makeDensityMatrix

Compute a matrix of counts from a list of x,y positions
plotrix-package

Specialized plots and plotting accessories
lengthKey

Key for interpreting lengths in a plot
multivari

Function to draw a multivari chart
spread.labels

Spread labels for irregularly spaced values
soils

Soil texture data from 125 soils
rescale

Scale numbers into a new range
size_n_color

Display circles with specified size and color
symbolbarplot

barplot filled with symbols
ptext3d

Display text on a 3D plot
polar.plot

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

Place staggered or angled labels on an axis
plotCI

Plot confidence intervals/error bars
starPie

A pie-like graphic object
raw.means.plot

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

Spread out a vector of numbers to a minimum interval
std.error

Calculate standard error of the mean
radialtext

Display text in a radial line
stackpoly

Display the columns of a matrix or data frame as stacked polygons
symbolbox

Draw a box filled with symbols
sumbrk

Count specified values in a vector
triax.points

Triangle plot points
triax.plot

Triangle plot
zoomInPlot

Display a plot with a rectangular section expanded in an adjacent plot
corner.label

Find corner locations and optionally display a label
find_max_cell

Maximum (or minimum) value cell in a matrix.
dotplot.mtb

Minitab style dotplots.
floating.pie

Display a floating pie chart
weighted.hist

Display a weighted histogram
tsxpos

Calculate equispaced x positions.
draw.arc

Draw arc
revaxis

Plot with axis direction(s) reversed
pyramid.plot

Pyramid plot
twoord.plot

Plot with two ordinates
ruginv

Add an Inverse Rug to a Plot
soil.texture

Soil texture triangle plot
sliceArray

Slice an array
textbox

Add text box
triax.frame

Triangle plot frame
smoothColors

Build a vector of color values
triax.fill

Triangle plot fill
thigmophobe.labels

Place labels away from the nearest point
triax.abline

Lines for triangle plot
thigmophobe

Find the direction away from the closest point
soil.texture.uk

Soil texture triangle plot using UK conventions
joyPlot

Display a series of density curves.
getIntersectList

Enter a set intersection list
get.triprop

Enter three proportion data - usually soil textures
getFigCtr

Get coordinates in the figure region in user units.
get.tablepos

Get the position for a legend or table
paxis3d

Display text in the margins of a 3D plot
pie3D

Display a 3D pie chart
kiteChart

Magnitude by position chart.
pasteCols

Paste the columns of a matrix together
pie3D.labels

Display labels on a 3D pie chart
radial.grid

Display a radial grid
sizeplot

Plot with repeated symbols by size
radial.pie

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

Find the number of valid (not NA) values
vectorField

Display magnitude/direction vectors
taylor.diagram

Taylor diagram
violin_plot

Display a "violin" plot
tab.title

Display the title of a plot as a colored tab
twoord.stackplot

Multiple (stack) plot with two ordinates
staircase.plot

Display a staircase plot
sizetree

Display a hierarchical breakdown of disjunct categories
staircasePlot

Display a staircase plot
barlabels

Label the bars on a barplot
add.ps

add p-values from t-tests
battleship.plot

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

A bar plotting routine
ablineclip

Add a straight line to a plot
barNest

Display a nested breakdown of numeric values
arctext

Display text on a circular arc
axis.break

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

Display an axis with values having a multiplier
addtable2plot

Add a table of values to a plot
brkdnNest

Perform a nested breakdown of numeric values
brkdn.plot

A point/line plotting routine
bin.wind.records

Classify wind direction and speed records
binciWu

Upper binomial confidence limit
binciW

Binomial confidence limits
bumpchart

Display a "bumps" (sequential ranking) chart
binciWl

Lower binomial confidence limit
categoryReshape

Convert object label/attribute label coding.
color.axis

Display an axis in a specified color