Takes a ds_radf object and returns a ggplot2 object, with a geom_segment() layer.

# S3 method for ds_radf
autoplot(object, trunc = TRUE, ...)

Arguments

object

An object of class ds_radf. The output of datestamp()

trunc

Whether to remove the period of the minimum window from the plot (default = TRUE).

...

Further arguments passed to methods. Not used.

Examples

# \donttest{

sim_data_wdate %>%
  radf() %>%
  datestamp() %>%
  autoplot()
#> Using `date` as index variable.
#> Using `radf_crit` for `cv`.


# Change the colour manually
sim_data_wdate %>%
  radf() %>%
  datestamp() %>%
  autoplot() +
  ggplot2::scale_colour_manual(values = rep("black", 4))
#> Using `date` as index variable.
#> Using `radf_crit` for `cv`.

# }