Learn R Programming

xRing (version 0.1.2)

plotRings: Plot xRing Objects

Description

Plot "xRing" objects.

Usage

plotRings(x, xlim = NULL, ylim = NULL, id = NULL, corr = NULL, EwLw = TRUE)

Value

None. A plot is produced.

Arguments

x

an object of class "xRing"

xlim

the x limits of the plot. The default value, NULL, indicates that the whole profile will be plotted.

ylim

the y limits of the plot.

id

a sufix to be added to the name of the series (<series_name> [id])

corr

value to be print at the top of the graph

EwLw

logical. If TRUE the earlywood and latewood assignments are plotted, by default is TRUE

See Also

plot.xRing

Examples

Run this code
if (interactive()) {
  data(PaPiRaw)
  data(PaPiSpan)

  PaPi <- detectRings(PaPiRaw[, 1, drop = FALSE], PaPiSpan)
  plotRings(PaPi$AFO1001a)
  plotRings(PaPi, series = "AFO1001a")
  plotRings(PaPi, series = "AFO1001a", xlim = c(120, 450))

  PaPi1 <- detectEwLw(PaPi, ew = 0.5)
  plotRings(PaPi1, series = "AFO1001a", EwLw = FALSE)
  plotRings(PaPi1, series = "AFO1001a")
}

Run the code above in your browser using DataLab