plot.dates {sdam}R Documentation

Plot interval dates

Description

A function to plot interval dates with different forms.

Usage

## S3 method for class 'dates'
plot(x, y, type = c("ts", "mp", "rg"), taq, tpq, id, out, 
    col, cex, lwd, lty, pch, main = NULL, xlab = NULL, ylab = NULL, 
    xlim = NULL, axes = TRUE, alpha, file = NULL, ...)

Arguments

x

dataset as a data frame object of variables and observations.

y

vector of identifiers (optional)

type

Type of date format to plot:

ts timespans with endpoints

mp mid points and range

rg range only

taq

timespan endpoint terminus ante quem (TAQ)

tpq

timespan endpoint terminus post quem (TPQ)

id

IDs as variable or rownames in dataset x

out

integer or vector with number of outliers to omit (first entry id for latest date)

col

color of pch

cex

size of pch

lwd

width of time interval segments

lty

shape of time interval segments

pch

symbol for taq and tpq

main

plot's main tile

xlab

plot's x label

ylab

plot's y label

xlim

plot's x limits

axes

plot's axes (logical)

alpha

alpha transparency for time interval segments

file

path to produce a file with a PDF format (optional)

...

additional optional parameters

Details

This plot function is for time interval segments given in the dataset x, which is given as a dataframe or as a “tibble” class object.

Value

A graphical plot.

Note

If x is NULL, then EDH dataset is taken by default.

Author(s)

Antonio Rivero Ostoic

See Also

dts, get.edh, edhw, prex, tibble

Examples

## Not run: 
# first 100 entries in the EDH dataset (default)
EDHdates <- edhw(vars=c("not_after", "not_before"), as="df", limit=100)

# timespans
plot.dates(EDHdates, taq="not_before", tpq="not_after")
## End(Not run)

[Package sdam version 1.1.4 Index]