plot.distributional: Plot continuous data as histograms or cumulative age...

View source: R/plot.R

plot.distributionalR Documentation

Plot continuous data as histograms or cumulative age distributions

Description

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

Usage

## S3 method for class 'distributional'
plot(
  x,
  snames = NULL,
  annotate = TRUE,
  CAD = FALSE,
  pch = NA,
  verticals = TRUE,
  colmap = NULL,
  ...
)

Arguments

x

an object of class distributional

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 labelled

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 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

colmap

an optional string with the name of one of R's built-in colour palettes (e.g., heat.colors, terrain.colors, topo.colors, cm.colors), which are to be used for plotting the data.

...

optional arguments to the generic plot function

Examples

data(Namib)
plot(Namib$DZ,c('N1','N2'))

provenance documentation built on May 29, 2024, 4:23 a.m.