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), ...)

Arguments

xts

an xts object

mv

moving average parameters

...

additional parameters passed to facet_grid()

plotly

logical asking whether to using plotly class plotting

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/useful.lovetoken documentation built on June 14, 2019, 3:21 p.m.