Learn R Programming

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

plotrix (version 3.6-3)

Various Plotting Functions

Description

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

Copy Link

Version

Install

install.packages('plotrix')

Monthly Downloads

68,165

Version

3.6-3

License

GPL (>= 2)

Maintainer

Jim Lemon

Last Published

July 21st, 2016

Functions in plotrix (3.6-3)

axis.break

Place a "break" mark on an axis
arctext

Display text on a circular arc
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
ablineclip

Add a straight line to a plot
barp

A bar plotting routine
barNest

Display a nested breakdown of numeric values
axis.mult

Display an axis with values having a multiplier
barlabels

Label the bars on a barplot
boxed.labels

Place labels in boxes
brkdn.plot

A point/line plotting routine
box.heresy

Display a sort of box plot
centipede.plot

Display a centipede plot
categoryReshape

Convert object label/attribute label coding.
bin.wind.records

Classify wind direction and speed records
brkdnNest

Perform a nested breakdown of numeric values
binciWu

Upper binomial confidence limit
binciWl

Lower binomial confidence limit
bumpchart

Display a "bumps" chart
clean.args

Remove inappropriate arguments from an argument list
color.id

Identify closest match to a color
color.axis

Display an axis in a specified color
clock24.plot

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

Legend matching categories or values to colors
color.scale.lines

Line segments with scaled colors
color.scale

Turn values into colors.
clplot

Plot lines with colors determined by values.
color.gradient

Calculate an arbitrary sequence of colors
cluster.overplot

Shift overlying points into clusters
dendroPlot

Display distributions as dendrites
count.overplot

Show overlying points as counts
diamondplot

Plot multiple variables as polygons on a radial grid
death_reg

Death registrations from 1996 to 2010
dispersion

Display a measure of dispersion.
color2D.matplot

Display a numeric matrix as color matrix
dotplot.mtb

Minitab style dotplots
do.first

Execute a graphic function on a plot
cylindrect

Display an apparent cylinder
corner.label

Find corner locations and optionally display a label
draw.tilted.sector

Display a 3D pie sector
drawNestedBars

Display nested bars
drawSectorAnnulus

Display a radial pie sector
ehplot

Engelmann-Hecker-Plot - EH-Plot
draw.arc

Draw arc
draw.circle

Draw a circle
draw.radial.line

Draw a radial line
draw.ellipse

Draw ellipse
election

Assign party members to seats
emptyspace

Find an empty space on a plot
gap.plot

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

Display a fan plot
fill.corner

Fill a "corner" of a matrix with values
feather.plot

Display vectors along a horizontal reference line
gap.boxplot

Display a boxplot with a gap (missing range)
furc

Plot a dendrite
fullaxis

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

Display a floating pie chart
get.segs

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

Gather the information to create a Gantt chart
legendg

Legend with grouped bars, lines or symbols
get.breaks

Get the breakpoints for a weighted histogram
get_axispos3d

Get axis positions on a 3D plot
lengthKey

Key for interpreting lengths in a plot
labbePlot

Display a L'Abbe plot
ladderplot

Ladder Plot
p2p_arrows

Draw arrows between points
oz.windrose.legend

Display an Australian wind rose legend
pie3D.labels

Display labels on a 3D pie chart
plot_bg

Add a background color to a plot
rescale

Scale numbers into a new range
getMarginWidth

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

Enter a set intersection list
revaxis

Plot with axis direction(s) reversed
plotH

Scatterplot with histogram-like bars.
plotrix-package

Specialized plots and plotting accessories
radialtext

Display text in a radial line
radial.plot.labels

Display labels on a circular grid
size_n_color

Display circles with specified size and color
sizeplot

Plot with repeated symbols by size
intersectDiagram

Display set intersections
gap.barplot

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

Display a Gantt chart
kiteChart

Magnitude by position chart.
oz.windrose

Display an Australian wind rose
multsymbolbox

Draw boxes filled with symbols
panes

Prepare a "panel" type layout
pasteCols

Paste the columns of a matrix together
propbrk

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

Display the output of brkdnNest
std.error

Calculate standard error of the mean
sumbrk

Count specified values in a vector
valid.n

Find the number of valid (not NA) values
getFigCtr

Get coordinates in the figure region in user units.
getYmult

Correct for aspect and coordinate ratio
get.triprop

Enter three proportion data - usually soil textures
vectorField

Display magnitude/direction vectors
maxEmptyRect

Find an empty space on a plot
makeIntersectList

Count set intersections
gradient.rect

Display a rectangle filled with an arbitrary color gradient
paxis3d

Display text in the margins of a 3D plot
perspx

Display perspective plot
soils

Soil texture data from 125 soils
psegments3d

Draw segments on a 3D plot
soil.texture.uk

Soil texture triangle plot using UK conventions
ptext3d

Display text on a 3D plot
twoord.stackplot

Multiple (stack) plot with two ordinates
twoord.plot

Plot with two ordinates
textbox

Add text box
taylor.diagram

Taylor diagram
get.soil.texture

Enter soil texture data
hexagon

Draw a hexagon
get.tablepos

Get the position for a legend or table
multhist

Plot a multiple histogram, as a barplot
pie.labels

Place labels on a pie chart
histStack

Histogram "stacked" by categories
mtext3d

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

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

Display a 3D pie chart
polygon.shadow

Display a shadow effect for an arbitrary polygon
plotCI

Plot confidence intervals/error bars
plot.dendrite

Plot a dendrogram of a dendrite object
makeDendrite

Build a list of the mutually exclusive attributes of objects
listDepth

Find the maximum depth of a list
radial.plot

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

Display a radial grid
radial.pie

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

Pyramid plot
staxlab

Place staggered or angled labels on an axis
starPie

A pie-like graphic object
sliceArray

Slice an array
sizetree

Display a hierarchical breakdown of disjunct categories
staircase.plot

Display a staircase plot
stackpoly

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

Triangle plot frame
triax.plot

Triangle plot
weighted.hist

Display a weighted histogram
raw.means.plot

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

Draw a rectangle filled with symbols
zoomInPlot

Display a plot with a rectangular section expanded in an adjacent plot
triax.points

Triangle plot points
tab.title

Display the title of a plot as a colored tab
symbolbox

Draw a box filled with symbols
spread.labels

Spread labels for irregularly spaced values
spreadout

Spread out a vector of numbers to a minimum interval
ruginv

Add an Inverse Rug to a Plot
tsxpos

Calculate equispaced x positions.
seats

Arrange N seats in M semicircular rows
soil.texture

Soil texture triangle plot
smoothColors

Build a vector of color values
sumDendrite

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

barplot filled with symbols
triax.fill

Triangle plot fill
thigmophobe.labels

Place labels away from the nearest point
thigmophobe

Find the direction away from the closest point
triax.abline

Lines for triangle plot