Hi, I wonder how could one plot shade area with quantmod's barChart() in the
log scale as well as in the normal scale.
Thanks.

Simon

library(quantmod)
d <- getSymbols("^GSPC",auto.assign=FALSE)
barChart(d,theme="white")
addTA(EMA(Cl(d),125),on=1,col="red")
addTA(Cl(d)>EMA(Cl(d),125),on=-1,col="green")
##
## there are green shade areas in the bar chart.   OK.

x11()
barChart(d,theme="white",log.scale=TRUE)
addTA(EMA(Cl(d),125),on=1,col="red")
addTA(Cl(d)>EMA(Cl(d),125),on=-1,col="green")
##
## there is not any green shade area at all.

########

> sessionInfo()
> R version 2.12.1 (2010-12-16)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] quantmod_0.3-15 TTR_0.20-2      xts_0.7-6.15    zoo_1.6-3
[5] Defaults_1.1-1

loaded via a namespace (and not attached):
[1] grid_2.12.1     lattice_0.19-13
>

	[[alternative HTML version deleted]]

