Learn R Programming

astrochron (version 0.3.1)

autoPlot: Automatically plot 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,smooth=0,xgrid=1,output=F,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.
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)
verbose
verbose output (T or F)