Learn R Programming

paleofire (version 1.1.8)

plot.pfCompositeLF: plot.pfCompositeLF

Description

Plot pfCompositeLF object

Usage

"plot"(x, type = "ci", add = "NULL", conf = c(0.05, 0.95), palette = "jet", xlim = NULL, ylim = NULL, main = "Composite", text = FALSE, what = "locfit", ...)

Arguments

x
A "pfCompositeLF" object.
type
Character, type of plot among "ci", "prctile", "density"
add
Character, add=NULL by default, add="sitenum" could be specified to plot the sites number in eah bin along with the composite curve.
conf
Numeric, confidence levels.
palette
Character, color palette used with type=c("prctile", "density") among "jet" and "BW".
xlim
Numeric, x axis limits.
ylim
Numeric, y axis limits.
main
Character, title of the plot.
text
Logical, text options.
what
Character, indicates which transformed charcoal trend is used for the plot (type="ci"), default "locfit" indicates that the trend is the locfit applied to All binned data, use "mean" or "median" to plot the mean or median of the locfit relplicates given by the bootstrap procedure.
...
...

Examples

Run this code

ID=pfSiteSel(id_region=="WNA0",l12==1,long>=-160,long<=-140)

TR=pfTransform(ID, method=c("MinMax","Box-Cox","MinMax","Z-Score"),
               BasePeriod=c(200,2000),QuantType="INFL")

COMP1=pfCompositeLF(TR, tarAge=seq(-50,4000,10), hw=200, nboot=100)

plot(COMP1)

## Note: comparing confidence intervals based on 100 replicates is not recommended
# (100 is used to decrease analysis time)


Run the code above in your browser using DataLab