在此代码中:
library(quantmod)
getSymbols("YHOO")
candleChart(YHOO)
addTA(Cl(YHOO)/2, legend = "", on = NA )
addTa()
的图例参数按预期工作。
但如果我让on = 1
:
library(quantmod)
getSymbols("YHOO")
candleChart(YHOO)
addTA(Cl(YHOO)/2, legend = "", on = 1 )
它显示Cl(YHOO)/2:
后跟最后调整后的价格作为图例。如何删除此图例?此外,是否可以删除图表上显示的最后价格?我在chartSeries()
文档中找不到任何提及的内容。
以下是我sessionInfo()
的输出:
R version 3.2.1 (2015-06-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods base
other attached packages:
[1] quantmod_0.4-4 TTR_0.22-0 doParallel_1.0.8 iterators_1.0.7 xts_0.9-7
[6] zoo_1.7-12 foreach_1.4.2 magrittr_1.5
loaded via a namespace (and not attached):
[1] Rcpp_0.11.6 lubridate_1.3.3 lattice_0.20-31 codetools_0.2-11 digest_0.6.8
[6] dplyr_0.4.2 assertthat_0.1 plyr_1.8.3 grid_3.2.1 R6_2.1.0
[11] DBI_0.3.1 RSQLite_1.0.0 utilsSE_0.1 stringi_0.5-5 lazyeval_0.1.10
[16] tools_3.2.1 stringr_1.0.0 compiler_3.2.1 memoise_0.2.1