Learn R Programming

astrochron (version 0.4.3)

autoPlot: Automatically plot multiple stratigraphic series, with smoothing if desired

Description

Automatically plot and smooth specified stratigraphic data, versus location. Data are smoothed with a Gaussian kernel.

Usage

autoPlot(dat,cols=NULL,nrows=NULL,ydir=-1,smooth=0,xgrid=1,output=F,genplot=T,verbose=T)

Arguments

dat
Your data frame; first column should be location identifier (e.g., depth).
cols
A vector that identifies the columns to extract (first column automatically extracted).
nrows
Number of rows in figure.
ydir
Direction for y-axis in plots (depth,height,time). -1 = values increase downwards, 1 = values increase upwards
smooth
Width (temporal or spatial dimension) for smoothing with a Gaussian kernel (0 = no smoothing); the Gaussian kernel is scaled so that its quartiles (viewed as probability densities, that is, containing 50 percent of the area) are at +/- 25 percent of this
xgrid
For kernal smoothing: (1) evaluate on ORIGINAL sample grid, or (2) evaluate on EVENLY SPACED grid covering range.
output
Output data frame of smoothed values? (T or F)
genplot
generate summary plots (T or F)
verbose
verbose output (T or F)