Learn R Programming

googleVis (version 0.5.3)

gvisCandlestickChart: Google Candlestick chart with R googleChartName <- "candlestickchart" gvisChartName <- "gvisCandlestickChart"

Usage

gvisCandlestickChart(data, xvar = "", low = "", open = "", close = "",
  high = "", options = list(), chartid)

Arguments

data
a data.frame to be displayed as a candlestick chart. The data has to have at least 5 columns.
xvar
name of the character column which contains the category labels for the x-axes.
low
name of the numeric column specifying the low/minimum value of this marker. This is the base of the candle's center line.
open
name of the numeric column specifying the opening/initial value of this marker. This is one vertical border of the candle. If less than the close value, the candle will be filled; otherwise it will be hollow.
close
name of the numeric column specifying the closing/final value of this marker. This is the second vertical border of the candle. If less than the open value, the candle will be hollow; otherwise it will be filled.
high
name of the numeric column specifying the high/maximum value of this marker. This is the top of the candle's center line.
options
list of configuration options, see: [results=rd]{gsub("CHARTNAME", googleChartName, readLines(file.path(".", "inst", "mansections", "GoogleChartToolsURLConfigOptions.txt")))}

[results=rd]{paste(readLines(file.path(".", "inst", "mansectio