## Examples
#data(cerrejon)
#cerrejon.counts <- t(cerrejon[-(1:2),])
#cerrejon.counts <- apply(cerrejon.counts, 2, as.numeric)
#row.names(cerrejon.counts) <- names(cerrejon)
#cerrejon.depths <- names(cerrejon)
#cerrejon.depths <- as.numeric(gsub('X', '', cerrejon.depths, perl = TRUE))
#cerrejon.samp.names <- cerrejon[1,]
#cerrejon.lith <- as.factor(as.character(cerrejon[2,]))
#rangechart(counts = cerrejon.counts, depths = cerrejon.depths)
data(corneta)
corneta.counts <- corneta[-1,-(1:2)]
corneta.counts <- corneta.counts[,-(ncol(corneta.counts))]
corneta.counts <- apply(corneta.counts, 2, as.numeric)
corneta.depths <- row.names(corneta)[-1]
corneta.samp.names <- corneta$label[-1]
corneta.tax.cat <- as.factor(as.character(corneta[1,-(1:2)]))
corneta.tax.cat <- corneta.tax.cat[1:(length(corneta.tax.cat)-1)]
rangechart(counts = corneta.counts, depths = corneta.depths,
tax.cat = corneta.tax.cat,
reorder = 'lad.by.category')
data(plain)
rangechart(counts = plain[,2:4], depths = plain[,1],
tax.cat = as.factor(c(1,2,1)),
reorder = 'lad.by.category')
data(rogerslk)
rangechart(as.strat.column(rogerslk), reorder = 'fad', pch = 20)
## Coloring the different categories....
data(mohawk)
rangechart(counts = mohawk$counts, depths = mohawk$depths,
tax.cat = mohawk$tax.cat, reorder = 'lad.by.category')
Run the code above in your browser using DataLab