Learn R Programming

provenance (version 0.2)

plot.DZdata: Plot continuous data as histograms or cumulative age distributions

Description

Plot one or several samples from a DZdata dataset as a histogram or Cumulative Age Distributions (CAD).

Usage

## S3 method for class 'DZdata':
plot(x, snames = NULL, annotate = TRUE, CAD = FALSE,
  pch = NA, verticals = TRUE, col = par("col"), ...)

Arguments

x
an object of class DZdata
snames
a string or a vector of string with the names of the samples that need plotting if snames is a vector, then the function will default to a CAD.
annotate
boolean flag indicating whether the x- and y-axis should be labeled
CAD
boolean flag indicating whether the data should be plotted as a cumulative age distribution or a histogram. For multi-sample plots, the function will override this value with TRUE.
pch
an optional the symbol to mark the sample points along the CAD
verticals
boolean flag indicating if the horizontal lines of the CAD should be connected by vertical lines
col
a colour map
...
optional arguments to the generic plot function

Examples

Run this code
DZ <- read.DZdata(system.file("DZ.csv",package="provenance"))
plot(DZ,c('N1','N2'),CAD=TRUE)

Run the code above in your browser using DataLab