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:
|
taq |
timespan endpoint terminus ante quem (TAQ) |
tpq |
timespan endpoint terminus post quem (TPQ) |
id |
IDs as variable or rownames in dataset |
out |
integer or vector with number of outliers to omit (first entry id for latest date) |
col |
color of |
cex |
size of |
lwd |
width of time interval segments |
lty |
shape of time interval segments |
pch |
symbol for |
main |
plot's main tile |
xlab |
plot's |
ylab |
plot's |
xlim |
plot's |
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)