Learn R Programming

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

plotrix (version 3.8-2)

Various Plotting Functions

Description

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

Copy Link

Version

Install

install.packages('plotrix')

Monthly Downloads

90,000

Version

3.8-2

License

GPL (>= 2)

Maintainer

Last Published

September 8th, 2021

Functions in plotrix (3.8-2)

ablineclip

Add a straight line to a plot
add.ps

add p-values from t-tests
axis.break

Place a "break" mark on an axis
arctext

Display text on a circular arc
barNest

Display a nested breakdown of numeric values
battleship.plot

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

Label the bars on a barplot
barp

A bar plotting routine
addtable2plot

Add a table of values to a plot
axis.mult

Display an axis with values having a multiplier
bin.wind.records

Classify wind direction and speed records
binciWl

Lower binomial confidence limit
bumpchart

Display a "bumps" (sequential ranking) chart
color.axis

Display an axis in a specified color
color.gradient

Calculate an arbitrary sequence of colors
box.heresy

Display a sort of box plot
color.scale.lines

Line segments with scaled colors
color.scale

Turn values into colors.
draw.radial.line

Draw a radial line
brkdn.plot

A point/line plotting routine
boxed.labels

Place labels in boxes
draw.tilted.sector

Display a 3D pie sector
brkdnNest

Perform a nested breakdown of numeric values
death_reg

Death registrations from 1996 to 2010
color.id

Identify closest match to a color
binciW

Binomial confidence limits
fullaxis

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

Plot multiple variables as polygons on a radial grid
color.legend

Legend matching categories or values to colors
densityGrid

Display a matrix of cell values as symbols.
clock24.plot

Plot values on a 24 hour "clockface"
categoryReshape

Convert object label/attribute label coding.
centipede.plot

Display a centipede plot
clplot

Plot lines with colors determined by values.
dotplot.mtb

Minitab style dotplots.
cluster.overplot

Shift overlying points into clusters
binciWu

Upper binomial confidence limit
draw.arc

Draw arc
dispersion

Display a measure of dispersion.
emptyspace

Find an empty space on a plot
fan.plot

Display a fan plot
do.first

Execute a graphic function on a plot
clustered.dotplots

Display the frequencies of two categories
gap.plot

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

Get the position for a legend or table
gantt.chart

Display a Gantt chart
gap_barp

Display a barplot with a gap (missing range) on one axis
draw.ellipse

Draw ellipse
corner.label

Find corner locations and optionally display a label
election

Assign party members to seats
color2D.matplot

Display a numeric matrix as color matrix
draw.circle

Draw a circle
get.breaks

Get the breakpoints for a weighted histogram
ehplot

Engelmann-Hecker-Plot - EH-Plot
get.gantt.info

Gather the information to create a Gantt chart
feather.plot

Display vectors along a horizontal reference line
fill.corner

Fill a "corner" of a matrix with values
getYmult

Correct for aspect and coordinate ratio
getFigCtr

Get coordinates in the figure region in user units.
legendg

Legend with grouped bars, lines or symbols
getMarginWidth

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

Display distributions as dendrites
ladderplot

Ladder Plot
get.triprop

Enter three proportion data - usually soil textures
getIntersectList

Enter a set intersection list
l2010

World lightning strike data from 2010
labbePlot

Display a L'Abbe plot
maxEmptyRect

Find an empty space on a plot
clean.args

Remove inappropriate arguments from an argument list
count.overplot

Show overlying points as counts
makeIntersectList

Count set intersections
pasteCols

Paste the columns of a matrix together
radialtext

Display text in a radial line
polygon.shadow

Display a shadow effect for an arbitrary polygon
paxis3d

Display text in the margins of a 3D plot
print.brklist

Display the output of brkdnNest
multivari

Function to draw a multivari chart
raw.means.plot

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

Get axis positions on a 3D plot
placeLabels

Place labels in boxes
cylindrect

Display an apparent cylinder
thigmophobe.labels

Place labels away from the nearest point
perspx

Display perspective plot
multsymbolbox

Draw boxes filled with symbols
gradient.rect

Display a rectangle filled with an arbitrary color gradient
triax.abline

Lines for triangle plot
joyPlot

Display a series of density curves.
drawNestedBars

Display nested bars
mtext3d

Display text in the margins of a 3D plot
kiteChart

Magnitude by position chart.
multhist

Plot a multiple histogram, as a barplot
pie3D

Display a 3D pie chart
find_max_cell

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

Plot with repeated symbols by size
psegments3d

Draw segments on a 3D plot
propbrk

Calculate the proportion of specified values in a vector
plotCI

Plot confidence intervals/error bars
sizetree

Display a hierarchical breakdown of disjunct categories
floating.pie

Display a floating pie chart
soils

Soil texture data from 125 soils
pie3D.labels

Display labels on a 3D pie chart
spread.labels

Spread labels for irregularly spaced values
pie.labels

Place labels on a pie chart
radial.pie

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

Display a radial grid
size_n_color

Display circles with specified size and color
seats

Arrange N seats in M semicircular rows
drawSectorAnnulus

Display a radial pie sector
radial.plot

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

Calculate the midpoints and limits for a centipede plot
get.soil.texture

Enter soil texture data
textbox

Add text box
staircase.plot

Display a staircase plot
thigmophobe

Find the direction away from the closest point
triax.plot

Triangle plot
gap.barplot

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

Display set intersections
gap.boxplot

Display a boxplot with a gap (missing range)
staircasePlot

Display a staircase plot
histStack

Histogram "stacked" by categories
hexagon

Draw a hexagon
triax.points

Triangle plot points
taylor.diagram

Taylor diagram
radial.plot.labels

Display labels on a circular grid
panes

Prepare a "panel" type layout
tab.title

Display the title of a plot as a colored tab
p2p_arrows

Draw arrows between points
revaxis

Plot with axis direction(s) reversed
rectFill

Draw a rectangle filled with symbols
plotH

Scatterplot with histogram-like bars.
plot_bg

Add a background color to a plot
rescale

Scale numbers into a new range
std.error

Calculate standard error of the mean
smoothColors

Build a vector of color values
sliceArray

Slice an array
triax.frame

Triangle plot frame
vectorField

Display magnitude/direction vectors
sumbrk

Count specified values in a vector
triax.fill

Triangle plot fill
ruginv

Add an Inverse Rug to a Plot
spreadout

Spread out a vector of numbers to a minimum interval
stackpoly

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

Display a "violin" plot
jiggle

Calculate equally spaced values within a range.
symbolbarplot

barplot filled with symbols
tsxpos

Calculate equispaced x positions.
symbolbox

Draw a box filled with symbols
lengthKey

Key for interpreting lengths in a plot
twoord.plot

Plot with two ordinates
oz.windrose.legend

Display an Australian wind rose legend
makeDensityMatrix

Compute a matrix of counts from a list of x,y positions
oz.windrose

Display an Australian wind rose
plotrix-package

Specialized plots and plotting accessories
ptext3d

Display text on a 3D plot
polar.plot

Plot values on a circular grid of 0 to 360 degrees
pyramid.plot

Pyramid plot
soil.texture

Soil texture triangle plot
starPie

A pie-like graphic object
soil.texture.uk

Soil texture triangle plot using UK conventions
valid.n

Find the number of valid (not NA) values
staxlab

Place staggered or angled labels on an axis
twoord.stackplot

Multiple (stack) plot with two ordinates
weighted.hist

Display a weighted histogram
zoomInPlot

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