plot.dates | R Documentation |
A function to plot interval dates with different forms.
## 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, ...)
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 |
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.
A graphical plot.
If x
is NULL
, then EDH
dataset is taken by default.
Antonio Rivero Ostoic
dts
, get.edh
, edhw
, prex
, tibble
## Not run: # first 100 entries in the EDH dataset data("EDH") EDHdates <- edhw(vars=c("not_after", "not_before"), as="df", limit=100) # timespans plot.dates(EDHdates, taq="not_before", tpq="not_after") # mid points plot.dates(EDHdates, type="mp", taq="not_before", tpq="not_after") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.