Skip to contents

Univariate & Distribution Plots

Plots for distributions, grouped data, functions, and time series.

plotArea()
Stacked Area Plot
plotBar()
Themed Barplot with Grid, Labels and Optional Connecting Lines
plotBox()
Grouped Boxplot
plotCatDist()
Categorical Distribution Plot
plotDens()
Grouped Density Plot
plotDensBox()
Density and Boxplot Combination (Grouped)
plotDot()
Dot Plot for Estimates and Confidence Intervals
plotECDF()
Empirical Cumulative Distribution Function
plotFdist()
Frequency Distribution Plot
plotLines()
Line Plot for Multiple Series
plotQQ()
QQ-Plot for Any Distribution
plotRidge(<default>) plotRidge(<formula>)
Ridge Plot (Stacked Density Plot)
plotViolin()
Violin Plot
plotFun()
Plot Mathematical Functions
plotProbDist()
Plot Probability Distribution
shade()
Produce a shaded Curve

Bivariate & Specialized Plots

Plots for relationships, contingency tables, diagnostics, and specialized displays.

plotAssoc()
Association Plot for Contingency Tables
plotBag()
Create a Bagplot (Bivariate Boxplot)
plotBubble(<default>) plotBubble(<formula>)
Bubble Plot
plotCor()
Correlation Matrix Plot with Theming and Optional Labels
plotDens2D()
Two-Dimensional Kernel Density Plot
plotHeatmap()
Heatmap for Categorical Data
plotHexbin()
Hexagonal Binning Plot
plotMosaic()
Mosaic Plot for 2-Way Contingency Tables
plotXY()
Scatterplot with Optional Smooth Lines
plotBinaryTree()
Binary Tree
plotCirc()
Circular Chord Diagram
plotFacet()
Facet Panel Matrix in Base Graphics
plotLift()
Lift Chart
plotMiss()
Plot Missing Data
plotPolar()
Polar Plot for Radial Data
plotPropCI()
Plot Proportions with Confidence Intervals
plotTernary()
Ternary Plot
plotTimeSeries()
Combined Plot of a Time Series and Its ACF and PACF
plotTreemap()
Treemap Plot
plotWeb()
Plot a Web of Connected Points
plot(<BlandAltman>)
Bland-Altman Plot
plot(<Desc.qn>)
Plot Method for Numeric-Categorical Desc Objects
plot(<Desc.table>)
Plot Method for Categorical-Categorical Desc Objects
plot(<Lc>) lines(<Lc>) points(<Lc>) lines(<LcList>) points(<LcList>) plot(<LcList>)
Plot Methods for Lorenz Curve Objects

Annotation, Axes & Layout

Plot annotation, axes, smoothers, themes, and graphics-state helpers.

abcCoords()
Coordinates for Named Plot Positions
axisBreak()
Place a Break Mark on an Axis
axisFmt()
Draw an Axis With Formatted or Rotated Labels
axTicks.POSIXct() axTicks.Date()
Compute Axis Tickmark Locations (For POSIXct Axis)
barText()
Place Value Labels on a Barplot
boxedText()
Add Text in a Box to a Plot
colLegend()
Add a Color Legend to a Plot
errBars()
Add Error Bars to an Existing Plot
polarGrid()
Draw a Polar Grid with Optional Labels
stamp()
Date/Time/Directory Stamp the Current Plot
textLegend()
Direct Labels in the Right Margin
titleRect()
Plot Boxed Annotation
lines(<lm>) lines(<lmlog>)
Add a Linear Regression Line
lines(<loess>)
Add a Loess Smoother and Its Confidence Band
splineX() lines(<SplineX>)
Add a Spline Smoother
.useTheme .drawGrid() .drawBox() .withGraphicsState() .applyParFromDots() .marTop() .resolveTitle() .marginLines()
Graphics Framework Helpers
isValidPlotRegion()
Check Whether the Current Plot Region Is Large Enough
mar()
Get or set plot margins conveniently
preview()
Preview an Object
setBackCol()
Background of a Plot
spreadOut()
Spread Out a Vector of Numbers To a Minimum Interval
getTheme() setTheme() resetTheme()
pharos's Graphics and Formatting Theme

Geometry & Coordinates

Geometric structures, coordinate conversions, and transformations.

arc()
Arc Geometry
band()
Band Geometry
bezier()
Bézier Geometry
canvas()
Canvas for Geometric Plotting
circle()
Circle Geometry
ellipse()
Ellipse Geometry
polygon()
Draw Polygonal Geometries
regPolygon()
Regular Polygon Geometry
ring()
Ring Geometry
polToCart() cartToPol() cartToSph() sphToCart()
Coordinate Transformations Cartesian/Polar/Spherical
degToRad() radToDeg()
Convert Degrees to Radians and Vice Versa
lineToUser()
Convert Line Coordinates To User Coordinates
rotate()
Rotate a Geometric Structure
transformXY()
Apply Geometric Transformations to Coordinates

Colours & Palettes

Colour conversion, manipulation, lookup, and palette construction.

color-conversion-overview
Color Conversion Functions in pharos
cmykToCmy()
Convert CMYK to CMY
cmykToRgb()
Convert CMYK to RGB
cmyToCmyk()
Convert CMY to CMYK
colToHex()
Convert R Colors to Hexadecimal Colors
colToHSV()
Convert R Colors to HSV
colToRGB()
Convert R Colors to RGB
grayScale()
Convert Colors to grayScale
hexToCol()
Convert Hex Colors to Named R Colors
hexToRGB()
Convert Hex Colors to RGB
longToRGB()
Convert Long Integers to RGB
rgbToCmy()
Convert RGB to CMY
rgbToCol()
Convert RGB Colors to the Nearest Named R Color
rgbToHex()
Convert RGB to Hexadecimal Colors
rgbToLong()
Convert RGB to Long Integers
addOpacity()
Add an Alpha Channel to Colors
colToOpaque()
Equivalent Opaque Color for Transparent Color
contrastColor()
Choose Optimal Text Color Based on WCAG Contrast
darken()
Darken Colors
fade()
Fade Colors
findColor()
Get Color on a Defined Color Range
lighten()
Lighten Colors
mixColors()
Mix Colors
hcol()
Helsana Colors
pal() plot(<Palette>)
Get a Color Palette
palNames()
List Available Palette Names

Formatting, Units & Tables

Formatting of values and confidence intervals, units, and table helpers.

fm()
Format Numbers and Dates
fmCI()
Format Confidence Intervals
styles() style() print(<Style>)
Format Styles
as.CI() is.CI()
Confidence Interval Objects
convUnit()
Symbolic Unit Conversion Engine
print(<Unit>)
Print Object with Unit
unit() `unit<-`()
Get or Set Unit Attribute
Formulas
Formula Interface – Common Arguments
ftable(<list>)
Flat Contingency Table for tapply-Like Lists
Prefix
DescToolsX Constants

Strings

String inspection, extraction, transformation, and formatting.

string-overview
String Functions in pharos
strCountW()
Count Words in Strings
strDist()
Compute Distances Between Strings
strIsNumeric()
Check if Character Strings Represent Numeric Values
strLen()
String length
strPos()
Find Position of First Occurrence Of a String
strChop()
Split a String into a Number of Sections of Defined Length
strExtract()
Extract First Match from Strings
strExtractBetween()
Extract Substrings Between Patterns
strLeft() strRight()
Returns the Left Or the Right Part Of a String
strSplit()
Split Strings
strVal()
Extract Numeric Values from Strings
lineSep()
Create a Line Separator String
strAbbr()
Abbreviate Strings Uniquely
strAlign()
Align Strings
strCap()
Capitalize Strings
strPad()
Pad a String With Justification
strRev()
Reverse Strings
strSpell()
Spell Strings Using Phonetic Alphabets
strTrim()
Remove Leading/Trailing Whitespace From A String
strTrunc()
Truncate Strings and Add Ellipses If a String is Truncated.

HTML & Embedding

HTML markup, embedded files and images, and self-contained HTML tables.

as.html()
Mark a character vector as HTML
preview(<html>)
Print HTML markup as readable text
as.fileLink()
Link to a self-contained embedded file
as.img()
Embed a plot as an inline HTML image
embedFile()
Base64-encode a file
escapeHtml()
Escape HTML special characters
htmlHat() htmlBar()
HTML notation for hat and bar diacritics
`%_%`
Subscript notation
toHtmlTable()
Render a matrix as an HTML table