read.DZdata(datafile, errorfile = NULL, metric = "KS",
xlabel = "age [Ma]", colmap = "rainbow")datafile. Must be specified if the data are to be
compared with the Sircombe-Hazelton distance."KS" (for
Kolmogorov-Smirnov) or "SH" (for Sircombe and Hazelton). If
metric = "SHDZdata, i.e. a list with the
following items:x: a named list of vectors containing the numerical data for each sample
err: an (optional) named list of vectors containing the standard errors of x
metric: either "KS" (for Kolmogorov-Smirnov) or "SH" (for Sircombe Hazelton)
breaks: a vector with the locations of the histogram bin edges
xlabel: a string containing the label to be given to the x-axis on all plots
fname <- system.file("DZ.csv",package="provenance")
DZ <- read.DZdata(fname)
plot(getKDE(DZ$x$N1))Run the code above in your browser using DataLab