Skip to contents

Plot epidemic curve panel

Usage

plot_epicurve(
  phylepic,
  fill = NULL,
  weeks = FALSE,
  week_start = getOption("phylepic.week_start"),
  binned = TRUE
)

Arguments

phylepic

Object of class "phylepic".

fill

Variable in metadata table to use for the fill aesthetic (tidy-eval).

weeks

[Deprecated] When TRUE, bin the date axis by weeks. Replaced by binned = TRUE paired with a suitable date scale.

week_start

[Deprecated] See week_breaks().

binned

When TRUE, bin the date axis by the scale breaks.

Value

If phylepic is specified returns a ggplot, otherwise a function that when passed a "phylepic" object produces a ggplot for use with plot.phylepic().

See also

Other phylepic plots: plot.phylepic(), plot_bars(), plot_calendar(), plot_tree()