Learn R Programming

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

(this Rmarkdown file is currently unused and under development and exists for example purposes only)

[

Citation

If you'd like to cite 'caroline', please cite as follows:

"David M. Schruth (2026) "caroline A Collection of Database, Data Structure, Visualization, and Utility Functions for R.", "Comprehensive R Archive Network", "https://CRAN.R-project.org/package=caroline")

Installation

Install the stable release from CRAN:

install.packages("caroline")

Or install directly from github using devtools

library(caroline)

Usage

See the online package vignette for more examples:

browseVignettes("caroline")

Take a look at the built-in data:

head(treeloss)

Basic sparge plot using built-in data:

plot.sparge(treeloss)

Get help:

?n
?nv
?pct
?nerge
?tab2df
?sstable
?groupBy
?bestBy
?sparge
?heatmatrix
?confound.grid

Notes

  • This package has been purposefully simplified for the sake of maintainability and to reduce dependence on other more distantly complex uni-'verses' of code.

Copy Link

Version

Install

install.packages('caroline')

Monthly Downloads

554

Version

1.1.2

License

Artistic-2.0

Maintainer

David Schruth

Last Published

July 15th, 2026

Functions in caroline (1.1.2)

dbWriteTable2

Data Import Wrapper for dbWriteTable.
raAddArms

Add Arms to a RA plot.
plotClock

Plot a simple clock.
plot.xy.ab.p

An x/y scatterplot with a linear regression line and p-value
plot.sparge

Visually compare all points from different univariate distributions
raPlot

Generate a Ratio Average [RAy] Plot.
usr2lims

Grab and adjust the current plot dimensions
vennMatrix

Create a Venn Ready Matrix out of a List of Factors
pies

Pie chart scatterplot
plot.confound.grid

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

Generate a Color Coded Legend dataframe via head and sum.
tab2df

Table to Data Frame
nv

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

Sum Sorted Tabulation
raAddSigLines

Add Significance Lines to an RA plot.
wjitter

Weighted Jitter
m

Regexp Match Operator
read.tab

Read in a Tab Delimited File.
raAddAxLabs

Add axis labels to an RA plot.
textplot

A Text-Only Plot
write.delim

Write a (tab) delimited text file.
regroup

Regroup a dataframe.
spie

Spie charts
pct

Add Percentage Columns to a Dataframe
nerge

Named Merge
rerowname

Rename select rows of a dataframe
parseArgString

Process Command Line Arguments
install.prev.pkg

Install the next oldest package
bestBy

Find the "best" record within subgroups of a dataframe.
heatmatrix

Simple Heatmap Plot
fit.1ln.rprt

Report a model fit in a single line of text output
ellipsis.defaults

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

Group a datafame by a factor and perform aggregate functions.
geomean

Calculate the Geometric Mean
hyperplot

Annotate Outliers in a Scatterplot via an HTML Image-Map
nv2df

Create a data frame from a named vector
mvlabs

Move Text Labels Interactively
labsegs

Buffered Segments for Point Labels
pad

Pad a vector of numerical string with zeros.
addFactLevs

Add new levels to the Factors in a DataFrame
makeEllipseCoords

Make Ellipse Coordinates
legend.position

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