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]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to