
gvisCandlestickChart(data, xvar = "", low = "", open = "",
close = "", high = "",
options = list(), chartid)
data.frame
to be displayed as a
candlestick chart. The data has to have at least 5 columns.close
value, the candle will be filled; otherwise
it will be hollow.open
value, the candle will
be hollow; otherwise it will be filled.tempfile
gvisCandlestickChart
returns list of class
"gvis
" and "list
".
An object of class "gvis
" is a list containing at least the
following components:type
chartid
html
Follow the link for Google's data policy.
print.gvis
, plot.gvis
for
printing and plotting methods## Please note that by default the googleVis plot command
## will open a browser window and requires an internet
## connection to display the visualisation.
## Example data set
OpenClose
C1 <- gvisCandlestickChart(OpenClose, xvar="Weekday", low="Low",
open="Open", close="Close",
high="High",
options=list(legend='none'))
plot(C1)
Run the code above in your browser using DataLab