Learn R Programming

dygraphs (version 1.1.1.4)

dyCandlestick: Candlestick plotter for dygraph chart

Description

Draw a candlestick chart.

Usage

dyCandlestick(dygraph, compress = FALSE)

Arguments

dygraph

Dygraph to draw chart on

compress

If true, compress data yearly, quarterly, monthly, weekly or daily according to overall amount of bars and/or current zoom level.

Value

Dygraph with specified candlestick plotter

Examples

Run this code
# NOT RUN {
library(xts)
data(sample_matrix)
library(dygraphs)
dygraph(sample_matrix) %>%
  dyCandlestick()

# }

Run the code above in your browser using DataLab