tmplot: ts and moving average plot for all fund items

Description Usage Arguments Value Examples

Description

ts and (three lines) moving average plot for all fund items

Usage

1
tmplot(xts, mv = c(20, 60, 120), plotly = F, ...)

Arguments

xts

an xts object

mv

moving average parameters

plotly

logical asking whether to using plotly class plotting

...

additional parameters passed to facet_grid()

Value

plotly If TRUE, plotly class ploting. else ggplot2 class ploting. Default value is FALSE

Examples

1
2
3
4
5
library("quantmod")

data <- getSymbols("^ks11", from = Sys.Date() - 1000, to = Sys.Date(), auto.assign = F)

tmplot(data)

lovetoken/kyoboLT documentation built on May 21, 2019, 7:49 a.m.