caroline: A Collection of Database, Data Structure, Visualization, and Utility Functions for R

The caroline R library contains dozens of functions useful for: database migration (dbWriteTable2), database style joins & aggregation (nerge, groupBy & bestBy), data structure conversion (nv, tab2df), legend table making (sstable & leghead), plot annotation (labsegs & mvlabs), data visualization (violins, pies & raPlot), character string manipulation (m & pad), file I/O (write.delim), batch scripting and more. The package's greatest contributions lie in the database style merge, aggregation and interface functions as well as in it's extensive use and propagation of row, column and vector names in most functions.

Install the latest version of this package by entering the following in R:
AuthorDavid Schruth
Date of publication2013-10-08 23:06:21
MaintainerDavid Schruth <>

View on CRAN

Man pages

addFactLevs: Add new levels to the Factors in a DataFrame.

bestBy: Find the "best" record within subgroups of a dataframe.

dbWriteTable2: Data Import Wrapper for dbWriteTable.

geomean: Calculate the Geometric Mean

groupBy: Group a datafame by a factor and perform aggreate functions.

heatmatrix: Simple Heatmap Plot

hyperplot: Annotate Outliers in a Scatterplot via an HTML Image-Map

labsegs: Buffered Segments for Point Labels

leghead: Generate a Color Coded Legend dataframe via head and sum.

m: Regexp Match Operator

makeElipseCoords: Make Elipse Coordinates

mvlabs: Move Text Labels Interactively

nerge: Named Merge

nv: Create a named vector from a dataframe, table or vector

pad: Pad a vector of numerical string with zeros.

parseArgStrings: Process Command Line Arguments

pct: Add Percentage Columns to a Dataframe

pies: Pie chart scatterplot

plotClock: Plot a simple clock.

raAddArms: Add Arms to a RA plot.

raAddAxLabs: Add axis labels to an RA plot.

raAddSigLines: Add Significance Lines to an RA plot.

raPlot: Generate a Ratio Average [RAy] Plot. Read in a Tab Delimited File.

regroup: Regroup a dataframe.

rerowname: Rename select rows of a dataframe

spieChart: Spie charts

sstable: Sum Sorted Tabulation

stats: Descriptive Statistics

tab2df: Table to Data Frame

textplot: A Text-Only Plot

usr2lims: Grab and adjust the current plot dimensions

vennMatrix: Create a Venn Ready Matrix out of a List of Factors

violins: Plot a Series of Vioplot Violins

wjitter: Weighted Jitter

write.delim: Write a (tab) delimited text file.


addFactLevs Man page
bestBy Man page
dbWriteTable2 Man page
geomean Man page
groupBy Man page
heatmatrix Man page
hyperplot Man page
labsegs Man page
leghead Man page
m Man page
makeElipseCoords Man page
mvlabs Man page
nerge Man page
nv Man page
pad Man page
parseArgString Man page
pct Man page
pies Man page
plotClock Man page
plot.spie Man page
raAddArms Man page
raAddAxLabs Man page
raAddSigLines Man page
raPlot Man page Man page
regroup Man page
rerowname Man page
spie Man page
sstable Man page
stats Man page
tab2df Man page
textplot Man page
usr2lims Man page
vennMatrix Man page
violins Man page
wjitter Man page
write.delim Man page

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.