[R] Loading data chartseries
bgnumis bgnum
bgnumis at gmail.com
Tue Sep 22 22:10:19 CEST 2015
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]]
More information about the R-help
mailing list