tsplot | R Documentation |
This function allows the user to quickly plot a time scale data table
tsplot(
tsdat,
ylim = c(0, 1),
xlim = NULL,
prop = 0.05,
gap = 0,
bottom = "bottom",
top = "top",
xlab = "Age (Ma)",
ylab = "",
boxes = NULL,
boxes.col = NULL,
shading = NULL,
shading.col = c("white", "gray80"),
plot.args = NULL,
boxes.args = NULL,
labels = TRUE,
labels.args = NULL,
lplab = TRUE,
rplab = TRUE
)
tsdat |
|
ylim |
|
xlim |
|
prop |
|
gap |
|
bottom |
|
top |
|
xlab |
|
ylab |
|
boxes |
|
boxes.col |
|
shading |
|
shading.col |
|
plot.args |
|
boxes.args |
|
labels |
|
labels.args |
|
lplab |
|
rplab |
|
As most analysis use an individually compiled time scale object, in order to ensure compatibility between the analyzed and plotted values, the time scale table used for the analysis could be plotted rather than a standardized table. Two example tables have been included in the package (stages
and tens
) that can serve as templates.
The function has no return value.
data(stages)
tsplot(stages, boxes="sys", shading="series")
# same with colours
tsplot(stages, boxes="sys", shading="series", boxes.col="systemCol")
# only the Mesozoic, custom axes
tsplot(stages, boxes="system", shading="stage", xlim=52:81,
plot.args=list(axes=FALSE, main="Mesozoic"))
axis(1, at=seq(250, 75, -25), labels=seq(250, 75, -25))
axis(2)
# only the Triassic, use the supplied abbreviations
tsplot(stages, boxes="short", shading="stage", xlim=c(250,199),
ylab="variable", labels.args=list(cex=1.5, col="blue"),
boxes.args=list(col="gray95"))
# colourful plot with two levels of hierarchy
tsplot(stages, boxes=c("short", "system"), shading="series",
boxes.col=c("col", "systemCol"), xlim=c(52:69))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.