Learn R Programming

paleofire (version 1.2.4)

plot.CHAR: Plot CHAR

Description

Plot an object of the class "CHAR" returned by the pretreatment function. Original accumulation rates are presented using grey bars, accumulation rates interpolated at equal time steps are presented by a black curve.

Usage

# S3 method for CHAR
plot(
  x,
  xlim = NULL,
  ylim = NULL,
  xlab = NULL,
  ylab = NULL,
  frame = TRUE,
  main = NULL,
  ...
)

Arguments

x

An object of the class "CHAR".

xlim

xlim...

ylim

ylim...

xlab

x axis label.

ylab

y axis label.

frame

TRUE by default

main

main plot title

Examples

Run this code
# NOT RUN {
## In this example we will use the charcoal record of the Lac du Loup (Blarquez et al. 2010)
## Load raw charcoal data in mm^2
A=read.csv("http://blarquez.com/public/code/loupchar.csv")
C_=A[,6] # charcoal areas
P_=A[,1:5] # CmTop, CmBot, AgeTop, AgeBot, Volume


## Calculates charcoal accumulation rate (CHAR, mm2.cm-2.yr-1)
CHAR=pretreatment(params=P_,serie=C_,Int=TRUE)
plot(CHAR)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab