exuber (version 0.3.0)

autoplot.datestamp: Plotting and tidying datestamp objects

Description

Plotting datestamp with geom_segment()

Usage

# S3 method for datestamp
autoplot(object, ...)

# S3 method for datestamp fortify(model, data, ...)

Arguments

object

An object of class datestamp()

...

further arguments passed to method. Specify common characteristics like ggplot2::xlab, that are later passed to ggplot chain. For multiple changes, the input in the argument should be in a list.

model

datestamp object

data

original dataset, not used (required by generic fortify() method).

Examples

Run this code
# NOT RUN {
dta <- cbind(sim_psy1(n = 100), sim_psy2(n = 100))

dta %>%
  radf() %>%
  datestamp() %>%
  autoplot()

# Change the colour manually
dta %>%
  radf() %>%
  datestamp() %>%
  autoplot() +
  ggplot2::scale_colour_manual(values = rep("black", 4))
# }

Run the code above in your browser using DataLab