gg_candles: Produce a candelstick chart of a given price history. Uses...

Description Usage Arguments Value Examples

View source: R/gg_candles.R

Description

Produce a candelstick chart of a given price history. Uses ggplot2 graphics.

Usage

1
gg_candles(symbol.xts, title_param = NA, alpha_param = 1)

Arguments

symbol.xts

price history with Open and Close columns.

title_param

chart title string

alpha_param

graphics color alpha

Value

the plot for further manipulation

Examples

1
2
3
4
5
6
## Not run: 
library(quantmod)
getSymbols("XLP",auto.assign=TRUE)
p <- gg_candles(XLP,"Price History")

## End(Not run)

greatgray/scorecard documentation built on May 17, 2019, 8:34 a.m.