Learn R Programming

provenance (version 0.2)

plot.KDE: Plot a kernel density estimate

Description

Plots an object of class KDE

Usage

## S3 method for class 'KDE':
plot(x, pch = "|", xlab = "age [Ma]", ylab = "", ...)

Arguments

x
an object of class KDE
pch
the symbol used to show the samples. Set pch = NA to turn them off
xlab
the label of the x-axis
ylab
the label of the y-axis
...
optional parameters to be passed on to the graphics object

Examples

Run this code
fname <- system.file("DZ.csv",package="provenance")
DZ <- read.DZdata(fname)
samp <- DZ$x[['N1']]
dens <- getKDE(samp,0,3000)
plot(dens)

Run the code above in your browser using DataLab