Learn R Programming

⚠️There's a newer version (3.8-4) of this package.Take me there.

plotrix (version 3.7)

Various Plotting Functions

Description

Lots of plots, various labeling, axis and color scaling functions.

Copy Link

Version

Install

install.packages('plotrix')

Monthly Downloads

84,962

Version

3.7

License

GPL (>= 2)

Maintainer

Jim Lemon

Last Published

December 7th, 2017

Functions in plotrix (3.7)

ablineclip

Add a straight line to a plot
addtable2plot

Add a table of values to a plot
add.ps

add p-values from t-tests
battleship.plot

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

Label the bars on a barplot
arctext

Display text on a circular arc
axis.break

Place a "break" mark on an axis
barp

A bar plotting routine
axis.mult

Display an axis with values having a multiplier
box.heresy

Display a sort of box plot
boxed.labels

Place labels in boxes
barNest

Display a nested breakdown of numeric values
color.axis

Display an axis in a specified color
binciWl

Lower binomial confidence limit
color.gradient

Calculate an arbitrary sequence of colors
binciWu

Upper binomial confidence limit
bumpchart

Display a "bumps" chart
categoryReshape

Convert object label/attribute label coding.
clock24.plot

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

Shift overlying points into clusters
clplot

Plot lines with colors determined by values.
clustered.dotplots

Display the frequencies of two categories
death_reg

Death registrations from 1996 to 2010
brkdn.plot

A point/line plotting routine
dendroPlot

Display distributions as dendrites
brkdnNest

Perform a nested breakdown of numeric values
draw.tilted.sector

Display a 3D pie sector
drawNestedBars

Display nested bars
centipede.plot

Display a centipede plot
count.overplot

Show overlying points as counts
clean.args

Remove inappropriate arguments from an argument list
draw.ellipse

Draw ellipse
draw.radial.line

Draw a radial line
color2D.matplot

Display a numeric matrix as color matrix
election

Assign party members to seats
corner.label

Find corner locations and optionally display a label
emptyspace

Find an empty space on a plot
draw.arc

Draw arc
cylindrect

Display an apparent cylinder
draw.circle

Draw a circle
gap.boxplot

Display a boxplot with a gap (missing range)
fullaxis

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

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

Plot a dendrite
joyPlot

Display a series of density curves.
color.scale

Turn values into colors.
kiteChart

Magnitude by position chart.
color.scale.lines

Line segments with scaled colors
dotplot.mtb

Minitab style dotplots.
gantt.chart

Display a Gantt chart
do.first

Execute a graphic function on a plot
gap.barplot

Display a barplot with a gap (missing range) on one axis
bin.wind.records

Classify wind direction and speed records
get.breaks

Get the breakpoints for a weighted histogram
binciW

Binomial confidence limits
get.gantt.info

Gather the information to create a Gantt chart
getMarginWidth

Find the margin width necessary to fit text or a legend next to a plot
color.id

Identify closest match to a color
getYmult

Correct for aspect and coordinate ratio
color.legend

Legend matching categories or values to colors
multivari

Function to draw a multivari chart
multsymbolbox

Draw boxes filled with symbols
fill.corner

Fill a "corner" of a matrix with values
jiggle

Calculate equally spaced values within a range.
floating.pie

Display a floating pie chart
labbePlot

Display a L'Abbe plot
get.segs

Calculate the midpoints and limits for a centipede plot
ladderplot

Ladder Plot
perspx

Display perspective plot
get.soil.texture

Enter soil texture data
pie.labels

Place labels on a pie chart
intersectDiagram

Display set intersections
legendg

Legend with grouped bars, lines or symbols
lengthKey

Key for interpreting lengths in a plot
drawSectorAnnulus

Display a radial pie sector
polar.plot

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

Count set intersections
ehplot

Engelmann-Hecker-Plot - EH-Plot
maxEmptyRect

Find an empty space on a plot
oz.windrose

Display an Australian wind rose
get.tablepos

Get the position for a legend or table
polygon.shadow

Display a shadow effect for an arbitrary polygon
get.triprop

Enter three proportion data - usually soil textures
radial.pie

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

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

Plot multiple variables as polygons on a radial grid
sizetree

Display a hierarchical breakdown of disjunct categories
dispersion

Display a measure of dispersion.
oz.windrose.legend

Display an Australian wind rose legend
fan.plot

Display a fan plot
plotCI

Plot confidence intervals/error bars
plotH

Scatterplot with histogram-like bars.
feather.plot

Display vectors along a horizontal reference line
psegments3d

Draw segments on a 3D plot
getFigCtr

Get coordinates in the figure region in user units.
ptext3d

Display text on a 3D plot
staircasePlot

Display a staircase plot
radial.plot.labels

Display labels on a circular grid
revaxis

Plot with axis direction(s) reversed
radialtext

Display text in a radial line
soil.texture.uk

Soil texture triangle plot using UK conventions
rescale

Scale numbers into a new range
soils

Soil texture data from 125 soils
starPie

A pie-like graphic object
sumDendrite

Sum the counts in the top level of a dendrite object
sumbrk

Count specified values in a vector
tab.title

Display the title of a plot as a colored tab
triax.plot

Triangle plot
taylor.diagram

Taylor diagram
triax.abline

Lines for triangle plot
thigmophobe.labels

Place labels away from the nearest point
sliceArray

Slice an array
hexagon

Draw a hexagon
stackpoly

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

Histogram "stacked" by categories
mtext3d

Display text in the margins of a 3D plot
staircase.plot

Display a staircase plot
multhist

Plot a multiple histogram, as a barplot
triax.points

Triangle plot points
p2p_arrows

Draw arrows between points
plot_bg

Add a background color to a plot
ruginv

Add an Inverse Rug to a Plot
plotrix-package

Specialized plots and plotting accessories
seats

Arrange N seats in M semicircular rows
print.brklist

Display the output of brkdnNest
propbrk

Calculate the proportion of specified values in a vector
spread.labels

Spread labels for irregularly spaced values
panes

Prepare a "panel" type layout
spreadout

Spread out a vector of numbers to a minimum interval
placeLabels

Place labels in boxes
symbolbarplot

barplot filled with symbols
plot.dendrite

Plot a dendrogram of a dendrite object
raw.means.plot

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

Draw a box filled with symbols
rectFill

Draw a rectangle filled with symbols
getIntersectList

Enter a set intersection list
textbox

Add text box
thigmophobe

Find the direction away from the closest point
get_axispos3d

Get axis positions on a 3D plot
twoord.stackplot

Multiple (stack) plot with two ordinates
gradient.rect

Display a rectangle filled with an arbitrary color gradient
valid.n

Find the number of valid (not NA) values
listDepth

Find the maximum depth of a list
weighted.hist

Display a weighted histogram
zoomInPlot

Display a plot with a rectangular section expanded in an adjacent plot
tsxpos

Calculate equispaced x positions.
pie3D

Display a 3D pie chart
twoord.plot

Plot with two ordinates
pie3D.labels

Display labels on a 3D pie chart
vectorField

Display magnitude/direction vectors
pyramid.plot

Pyramid plot
radial.grid

Display a radial grid
violin_plot

Display a "violin" plot
size_n_color

Display circles with specified size and color
makeDendrite

Build a list of the mutually exclusive attributes of objects
sizeplot

Plot with repeated symbols by size
smoothColors

Build a vector of color values
pasteCols

Paste the columns of a matrix together
soil.texture

Soil texture triangle plot
staxlab

Place staggered or angled labels on an axis
paxis3d

Display text in the margins of a 3D plot
std.error

Calculate standard error of the mean
triax.fill

Triangle plot fill
triax.frame

Triangle plot frame