Hi all,
I want to plot this data on file.txt that has this format
01/01/2000;970,1877
02/01/2000;970,2224
03/01/2000;969,0336
04/01/2000;958,3023
05/01/2000;952,8527
I´m trying to plot with quantmode with this code but it is not working
X<-read.table("file.txt", col.names=c("Date","LAST"), sep=";",dec=",")
chartSeries(
X,theme="white",
TA = c(addBBands(200,2))
)
But it says on error
Error in try.xts(x, error = "chartSeries requires an xtsible object") :
chartSeries requires an xtsible object
How can I run chartseries with my own data?
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.