minidygraph: Mini version of dygraphs

Description Usage Arguments Value Examples

Description

R tutorial of htmlwidgets using dygraph Javascript library.

Usage

1
2
minidygraph(data, main = NULL, xlab = NULL, ylab = NULL, width = NULL,
  height = NULL, elementId = NULL)

Arguments

data

Time series data, must be an xts object or an object which is convertible to xts.

main

Main plot title (optional)

xlab

X axis label

ylab

Y axis label

width

Width in pixels (optional, defaults to automatic sizing)

height

Height in pixels (optional, defaults to automatic sizing)

elementId

Use an explicit element ID for the widget (rather than an automatically generated one). Useful if you have other JavaScript that needs to explicitly discover and interact with a specific widget instance.

Value

Interactive dygraph plot

Examples

1
2
3
library(minidygraphs)
lungDeaths <- cbind(mdeaths, fdeaths)
minidygraph(lungDeaths)

danzhuibing/minidygraphs documentation built on May 14, 2019, 6:06 p.m.