annotateSeries: annotateSeries

View source: R/dyAnnotation.r

annotateSeriesR Documentation

annotateSeries

Description

Annotate a series

Usage

annotateSeries(
  dygraph,
  series,
  x = 0,
  text = series,
  tooltip = series,
  width = 50,
  ...
)

Arguments

dygraph

Dygraph to add an annotation to

series

Series to attach the annotation to. By default, the last series defined using dySeries.

x

Either numeric or date value indicating where to place the annotation. For date value, this should be of class POSIXct or convertible to POSIXct.

text

Text to overlay on the chart at the location of x

tooltip

Additional tooltip text to display on mouse hover

width

Width (in pixels) of the annotation flag.

...

Further arguments passed to link[dygraphs]{dyAnnotation}

Details

A helper function that changes the order of some options for link[dygraphs]{dyAnnotation} so it is easier to use with reduce.

Author(s)

Jared P. Lander


coefplot documentation built on March 18, 2022, 7:58 p.m.