Learn R Programming

paleoTS (version 0.5-1)

plot.paleoTS: Plots paleoTS objects

Description

Plots paleontological time series, showing trait means (with error bars) over time.

Usage

# S3 method for paleoTS
plot(x, nse = 1, pool = FALSE, add = FALSE, modelFit=NULL, 
                       pch=19, lwd=1.5, ylim=NULL, ...)

Arguments

x

a paleoTS object

nse

size of error bars, in standard errors

pool

logical, indicating if should pool variances among samples in computing standard errors for plotting

add

logical, if TRUE data are added to existing plot

modelFit

optional paleoTSfit object with model fit results to add to plot

pch

plotting symbol

lwd

line width for plotting

ylim

y limit for plotting (optional)

other arguments sent to plot

Value

No values are returned, the results are plotted.

Details

If modelFit is not NULL, then modelCurves will be used to generate and plot the expectations and 95 percent probability interval of that model.

See Also

as.paleoTS, modelCurves

Examples

Run this code
# NOT RUN {
y <- sim.GRW(50, 0, 1)
plot(y)
ys <- sub.paleoTS(y, k=0.2)		# same sequence, sub-sampled
plot (ys, add=TRUE, col="red")
# }

Run the code above in your browser using DataLab