Interface to 'Dygraphs' Interactive Time Series Charting Library

An R interface to the 'dygraphs' JavaScript charting library (a copy of which is included in the package). Provides rich facilities for charting time-series data in R, including highly configurable series- and axis-display and interactive features like zoom/pan and series/point highlighting.


News

  • Added dyCandlestick for creating candlestick/OHLC style charts

  • Added dyPlotter for defining custom plotters

  • Added Shiny callbacks that react when the user clicks on the graph

  • Support for non-date values in shiny input bindings (#132)

  • Don't call shiny input bindings if they aren't yet available

  • Fix for shiny input binding regression introduced in move to instance bound widgets (#123)
  • Create shiny input binding after dygraph is created (#121)

  • Reflect color in dyEvent text label (#122)

  • New dyPlugin function for including dygraphs plugins

  • Properly handle NULL dyEvent label (#112)

  • Handle milliseconds in time events (#85)

  • Add elementId parameter to dygraph function to specify explicit elementId

  • Implement factory method so dygraph is addressable from widget instance: e.g. HTMLWidgets.getInstance(document.getElementById('mywidget')).dygraph

  • Handle vector data in dyEvent

  • Don't do sizeChanged polling (no longer required)

  • Option to disable y-axis touch events on mobile devices

  • Manage visibility of dygraphs in all types of boostrap tab panes

  • Call widget.resize whenever parent size changes

  • Ensure that dygraphs are shown properly in R Markdown tabsets

  • Ensure that dygraphs are shown properly in reveal.js presentations

  • Fix bug which prevented custom plotters from working in dySeries

  • Add support for plotting data with a numeric x-axis (previously only time series data was accepted).

  • Add new logscale option for numeric x-axis.

  • Add stemPlot option to dyOptions and dySeries.

  • Update embedded dygraphs to version 1.1

  • Add support for show='follow' to dyLegend

  • Add labelsUTC option to dyOptions

  • Change default x axis label width to 60 (necessitated by changes to default dygraphs 1.1 x-axis year formatting)

  • Allow explicit specification of series periodicity when creating a dygraph

  • Correct serialization of dates with year < 1000

  • Add axis argument to dyShading for horizontal shading

  • Add dyLimit function for drawing horizontal limit lines

  • Add retainDateWindow option for more flexibility as to whether the user data window (zoom level) is retained when updating data and/or options for an existing dygraph.

  • Fix infinite redraw issue which occurred with shiny uiOutput and grouped dygraphs.

  • Fix failure to update shiny date range input after graph is re-rendered based on new data or options.

  • Support dynamic updating (i.e. for Shiny reactive outputs) for all dygraphs properties (destroy and rebuild the entire dygraph on renderValue)

  • Fix an axis value issue that occurred with seconds and useDataTimezone

  • Fix issue where dygraph in ioslides didn't display on slide entry

  • Fix bug with specification of multiple series colors
  • Add useDataTimezone option to enable time display using the underlying xts timezone rather than the timezone of the client workstation.

  • Add Shiny input binding for the currently selected dateWindow

  • Fix bug with incorrect formatting of ISO8601 dates on Windows

  • Fix bug which caused specification of only a single custom color to fail

  • Add explicit showRoller option to dyRoller function

Initial release to CRAN

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("dygraphs")

1.1.1.4 by JJ Allaire, a month ago


https://github.com/rstudio/dygraphs


Report a bug at https://github.com/rstudio/dygraphs/issues


Browse source code at https://github.com/cran/dygraphs


Authors: Dan Vanderkam [aut, cph] (dygraphs library in htmlwidgets/lib, http://dygraphs.com/), JJ Allaire [aut, cre] (R interface), RStudio [cph], Jonathan Owen [aut, cph], Daniel Gromer [aut, cph], Petr Shevtsov [aut, cph], Benoit Thieurmel [aut, cph], jQuery Foundation [cph] (jQuery library), jQuery contributors [ctb, cph] (jQuery library; authors listed in inst/htmlwidgets/lib/jquery/AUTHORS.txt)


Documentation:   PDF Manual  


Task views: Time Series Analysis


MIT + file LICENSE license


Imports magrittr, htmlwidgets, htmltools, zoo, xts

Suggests testthat

Enhances rmarkdown, shiny


Imported by BETS, backtestGraphics, lfstat, seasonalview, shinystan.

Depended on by ZRA.

Suggested by manipulateWidget.


See at CRAN