Rã«ãWebåã®æ³¢ãæ¥ã¦ã¾ããã RStudio, Incããªãªã¼ã¹ããShinyã¯Rã®ã¿ã§ãµã¼ãã¼ãä»è¨èªãå¿ è¦ã¨ããã¦ã§ãã¢ããªãä½æã§ããç»æçãªããã±ã¼ã¸ã§ãã Introducing Shiny: Easy web applications in R - rstudio.com/shiny/ #rstats #rstudio #shinyâ RStudioãã (@rstudioapp) 11æ 8, 2012 æ¦è¦ã¯ãã¿ãå çã«ãä»»ãããã¨ãã¦ï¼ç°¡åãªã¢ããªãä½ã£ã¦ã¿ã¾ããã ã¦ã§ãã¢ããªã®ã¹ã¯ãªããã¯ï¼2ã¤ã®ãã¡ã¤ã«ã«åãã¦ä½æãã¾ãã 1ã¤ãã¯ï¼ui.Rã¨ããååã§ä½æãã¾ãã 2ã¤ãã¯ï¼server.Rã¨ããååã§ä½æãã¾ãã ãããã1ã¤ã®ãã©ã«ãã«ä¿åãã¾ããããã§ã¯stockã¨ãããã©ã«ããä½ã£ã¦ï¼ããã«ä¿åãããã¨ã«ãã¾ããä¿åãããï¼Rãç«ã¡ä¸ãï¼stockã®ã
Shinyã使ãã¨ãRã ãã§åæWebã¢ããªã±ã¼ã·ã§ã³ãä½ãã. http://www.rstudio.com/shiny/ ãµã¼ãå´ã®å¦çãããã©ã¦ã¶ã®uiããJavascript/HTML/CSSãæ¸ããã¨ããRã§æ¸ãã. Shinyã®ã¤ã³ã¹ãã¼ã«ã¯ãRã®ã³ã³ã½ã¼ã«ã§ã options(repos=c(RStudio='http://rstudio.org/_packages', getOption('repos'))) install.packages('shiny') ãããã ãã Shinyã¢ããªã®æå°æ§æã¯ã以ä¸ã®ããã«ãªã. ~/shinyapp |-- ui.R (ãã©ã¦ã¶å´ã®å¦ç) |-- server.R (ãµã¼ãå´ã®å¦ç) .Rã®2ã¤ãå®è£ ããå¿ è¦ããã. ä¾ãã°ãããªæãã«ãªã.(tutorialã®ä¾ãã) ui.R library(shiny) # ã©ã³ãã ãªåå¸
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}