Re: [问题] 在shiny上以rCharts画scatter plot

楼主: celestialgod (天)   2015-07-26 15:13:08
7/26 16:23更新:
后来测试成功,重点在于设定dom的名称
code: http://pastebin.com/6c0gdc1Y
nPlot成功案例:http://tinyurl.com/ovuxmpt
7/26 15:10写的:
我跑是没出现任何警告跟错误,我的环境列于下方:
而且有正常呈现,不过你的scatter_plot那个tab没有图就是
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Chinese (Traditional)_Taiwan.950
[2] LC_CTYPE=Chinese (Traditional)_Taiwan.950
[3] LC_MONETARY=Chinese (Traditional)_Taiwan.950
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Traditional)_Taiwan.950
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shiny_0.11.1 rCharts_0.4.5
loaded via a namespace (and not attached):
[1] R6_2.0.1 plyr_1.8.2 htmltools_0.2.6 tools_3.2.0
[5] whisker_0.3-2 yaml_2.1.13 Rcpp_0.11.5 RJSONIO_1.3-0
[9] grid_3.2.0 digest_0.6.8 xtable_1.7-4 httpuv_1.3.2
[13] mime_0.3 lattice_0.20-31
测试code: http://pastebin.com/qxpRSm0y
(我只是把ui.R跟server.R合并到function而已)
※ 引述《ardodo (米虫)》之铭言:
: [问题类型]:
:
: 程式咨询(我想用R 做某件事情,但是我不知道要怎么用R 写出来)
:
: [软件熟悉度]:
: 请把以下不需要的部份删除
: 入门(写过其他程式,只是对语法不熟悉)
:
: [问题叙述]:
: 版友好,我试着以rCharts在shiny上绘制iris的散布图,但是画不出来,不知道为什么
: code在此 http://pastebin.com/EkS2YxcC
: 执行shiny后,会跳出以下的讯息:
: Note: the specification for S3 class “AsIs” in package ‘jsonlite’ seems
: equivalent to one from package ‘RJSONIO’: not turning on duplicate class
: definitions for this class.
: 恳请解答,感谢
: 附上我的sessionInfo
: other attached packages:
: [1] rCharts_0.4.5 shiny_0.12.1
: loaded via a namespace (and not attached):
: [1] Rcpp_0.11.6 lattice_0.20-31 digest_0.6.8 mime_0.3
: grid_3.2.1
: [6] R6_2.1.0 plyr_1.8.3 xtable_1.7-4 jsonlite_0.9.16
: rstudioapi_0.3.1
: [11] whisker_0.3-2 RJSONIO_1.3-0 tools_3.2.1 httpuv_1.3.2
: yaml_2.1.13
: [16] rsconnect_0.4.1.2 htmltools_0.2.6
作者: ardodo (米蟲)   2015-07-27 11:44:00
感谢版主的回文,看起来rCharts的不同套件功能如hPlot,rPlot, nPlot在设定上略有不同,而重点就是dom要指名不晓得哪里有rCharts底下各种图的用法说明文件?我找了好久只找到rCharts Documentation比较完整想知道如何设定图形大小、margin等图形参数原来如此,所以就是要查看看这些rCharts支援的js library是怎么设定图形的囉?感谢回答感谢版主热心的分享,看来这需要学习js才能解决太感谢了!!!!

Links booklink

Contact Us: admin [ a t ] ucptt.com