Learn R Programming

caroline (version 1.0.0)

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

Description

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), automatic legend positioning for scatter and box plots (), plot annotation (labsegs & mvlabs), data visualization (pies, sparge, confound.grid & raPlot), character string manipulation (m & pad), file I/O (write.delim), batch scripting, data exploration, 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.

Copy Link

Version

Install

install.packages('caroline')

Monthly Downloads

643

Version

1.0.0

License

Artistic-2.0

Maintainer

David Schruth

Last Published

June 16th, 2026

Functions in caroline (1.0.0)

plotClock

Plot a simple clock.
raAddAxLabs

Add axis labels to an RA plot.
plot.confound.grid

Plot a grid of x y plots split by a confounder z
rerowname

Rename select rows of a dataframe
regroup

Regroup a dataframe.
pies

Pie chart scatterplot
plot.xy.ab.p

An x/y scatterplot with a linear regression line and p-value
vennMatrix

Create a Venn Ready Matrix out of a List of Factors
plot.sparge

Visually compare all points from different univariate distributions
usr2lims

Grab and adjust the current plot dimensions
parseArgString

Process Command Line Arguments
read.tab

Read in a Tab Delimited File.
raPlot

Generate a Ratio Average [RAy] Plot.
sstable

Sum Sorted Tabulation
pct

Add Percentage Columns to a Dataframe
raAddArms

Add Arms to a RA plot.
spie

Spie charts
raAddSigLines

Add Significance Lines to an RA plot.
wjitter

Weighted Jitter
makeElipseCoords

Make Elipse Coordinates
write.delim

Write a (tab) delimited text file.
textplot

A Text-Only Plot
tab2df

Table to Data Frame
addFactLevs

Add new levels to the Factors in a DataFrame.
bestBy

Find the "best" record within subgroups of a dataframe.
fit.1ln.rprt

Report a model fit in a single line of text output
geomean

Calculate the Geometric Mean
ellipsis.defaults

Modify defaults of possible optional ellipsis parameter values passed to a function
groupBy

Group a datafame by a factor and perform aggreate functions.
dbWriteTable2

Data Import Wrapper for dbWriteTable.
distro.dots

Distribution plot of points
heatmatrix

Simple Heatmap Plot
hyperplot

Annotate Outliers in a Scatterplot via an HTML Image-Map
install.prev.pkg

Install the next oldest package
nv

Create a named vector from a dataframe, table or vector
pad

Pad a vector of numerical string with zeros.
labsegs

Buffered Segments for Point Labels
m

Regexp Match Operator
leghead

Generate a Color Coded Legend dataframe via head and sum.
legend.position

automatically find an optimal position a plot legend based on point counts in each plot corner
nerge

Named Merge
mvlabs

Move Text Labels Interactively