plot.dates.Rd
A function to plot interval dates with different forms.
# S3 method for 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, ...)
<!-- %plot.dates(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, ...) -->
dataset as a data frame object of variables and observations.
vector of identifiers (optional)
Type of date format to plot:
ts
timespans with endpoints
mp
mid points and range
rg
range only
timespan endpoint terminus ante quem (TAQ)
timespan endpoint terminus post quem (TPQ)
IDs as variable or rownames in dataset x
integer or vector with number of outliers to omit (first entry id for latest date)
color of pch
size of pch
width of time interval segments
shape of time interval segments
symbol for taq
and tpq
plot's main tile
plot's x
label
plot's y
label
plot's x
limits
plot's axes (logical)
alpha transparency for time interval segments
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.
## Not run:
# first 100 entries in the EDH dataset
data("EDH")
#> Warning: data set ‘EDH’ not found
EDHdates <- edhw(vars=c("not_after", "not_before"), as="df", limit=100)
#> Warning: "x" is for dataset "EDH".
# 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)