Closed hetong007 closed 10 years ago
I am new to rCharts and I ran through the example. I got the following error:
rCharts
> dygraph(data=dydata, ribbon=colors) > dygraph(data=dydata, ribbon=list(colors=ribbon, height=0.2, pos=0.1)) Error in dygraph(data = dydata, ribbon = list(colors = ribbon, height = 0.2, : object 'ribbon' not found
There's indeed no variable called ribbon. How can I get it? Thank you.
ribbon
P.S.: My environment:
> sessionInfo() R version 3.1.0 (2014-04-10) Platform: x86_64-w64-mingw32/x64 (64-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=Chinese (Simplified)_People's Republic of China.936 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] data.table_1.9.2 quantmod_0.4-0 TTR_0.22-0 Defaults_1.1-1 [5] rChartsDygraphs_0.2 xts_0.9-7 zoo_1.7-11 brew_1.0-6 [9] rCharts_0.4.2 knitr_1.6 slidify_0.4.5 loaded via a namespace (and not attached): [1] codetools_0.2-8 digest_0.6.4 evaluate_0.5.5 formatR_0.10 grid_3.1.0 lattice_0.20-29 [7] markdown_0.7 plyr_1.8.1 Rcpp_0.11.2 reshape2_1.4 RJSONIO_1.2-0.2 stringr_0.6.2 [13] tools_3.1.0 whisker_0.3-2 yaml_2.1.11
Thanks for reporting, it is just a typo, use variable colors instead of ribbon. Fixed the docs in this commit https://github.com/danielkrizian/rChartsDygraphs/commit/17ac0c2ff2c444c6968897b916a90744ea9a2d58
colors
I am new to
rCharts
and I ran through the example. I got the following error:There's indeed no variable called
ribbon
. How can I get it? Thank you.P.S.: My environment: