[R] Quantmod abline and axis configuration
bgnumis bgnum
bgnumis at gmail.com
Sat Apr 9 21:14:10 CEST 2016
Hi all,
I have this code
I want to add two ablines like this
abline(h=2400, lty=3, col="lightgrey")
abline(h=400, lty=3, col="lightgrey")
But doesnt wotk.
I alo try to set ylim from 0 to max "Foa"+1000 but I´m not able ¿Is it
posible?
require(latticeExtra)
require(ggplot2)
require(reshape2)
suppressPackageStartupMessages(require(googleVis))
require(quantmod)
require(PerformanceAnalytics)
require(xtsExtra)
require(rCharts)
Foa<-as.xts(read.zoo("fa.txt",col.names=c("Date","LAST"), sep="",dec=",",
format="%d/%m/%Y"))
chartSeries(Foa,theme="white",TA = c(addBBands(50,2), addBBands(100,2),
addBBands(250,2), ylim(0,4000))
)
t=chartTheme()
t$BBands$fill="#ff666633"
reChart(theme="white")
t$BBands$col=c('red','blue','green')
t$BBands$col='blue'
reChart(theme="t")
[[alternative HTML version deleted]]
More information about the R-help
mailing list