Learn R Programming

sdam (version 1.1.4)

plot.dates: Plot interval dates

Description

A function to plot interval dates with different forms.

Usage

# 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, ...)


Value

A graphical plot.

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

Author

Antonio Rivero Ostoic

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.

See Also

dts, get.edh, edhw, prex, tibble

Examples

Run this code
if (FALSE) {
# 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")}

Run the code above in your browser using DataLab