Displaying 1 result from an estimated 1 matches for "savechart".
Did you mean:
davehart
2012 Oct 14
0
Asking help about drawing and saving candle chart automatically....
..., strdate, sep="" )
print(daterange)
jpegname <- paste(strdate, ".jpeg", sep="")
#### jpeg( filename=jpegname, width=1200, height=400 )
tryCatch(chartSeries(aa, subset=daterange, type='candlesticks',
theme=chartTheme('white')))
#dev.list()
#saveChart( 'jpeg' )
#### dev.off()
# wait for user input
cat("\n","Enter x","\n") # prompt
y<-scan(n=1)
}
-----------------------------------------------------
The problems are as the follows:
1. I tried to save chart as the format like '2011-11-02.jpg'...