{"id":551,"date":"2014-07-26T03:46:59","date_gmt":"2014-07-26T03:46:59","guid":{"rendered":"http:\/\/kourentzes.com\/forecasting\/?p=551"},"modified":"2014-11-11T01:16:39","modified_gmt":"2014-11-11T01:16:39","slug":"experimenting-with-shiny-for-r","status":"publish","type":"post","link":"https:\/\/kourentzes.com\/forecasting\/2014\/07\/26\/experimenting-with-shiny-for-r\/","title":{"rendered":"Experimenting with Shiny for R"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/shiny.rstudio.com\/\" target=\"_blank\">Shiny<\/a> is a web application framework for R. The idea is simple: deploy R code in webpages. This might prove useful when user interaction is required, for instance to design and deploy forecasting experiments that need human participants.<\/p>\n<p style=\"text-align: justify;\">I gave it a try to see how easy is it to build a demo. Assuming your R skills are ok, then using shiny should be straightforward. It took me a couple of hours starting from zero to get a somewhat complex example for forecasting using MAPA, for which there is already an <a title=\"Multiple Aggregation Prediction Algorithm (MAPA)\" href=\"http:\/\/kourentzes.com\/forecasting\/2014\/04\/19\/multiple-aggregation-prediction-algorithm-mapa\/\">R package<\/a>.<\/p>\n<p><iframe loading=\"lazy\" id=\"Season\" style=\"border: none; width: 100%; height: 670px;\" src=\"https:\/\/kourentzes.shinyapps.io\/shinyMAPA\/\" width=\"100%\" height=\"670\" frameborder=\"0\"><\/iframe><\/p>\n<p style=\"text-align: justify;\">Update 11\/04\/2014: I have revisited the code for the MAPA demonstration. The new one can fit within the normal blog page, but if you prefer the full screen version you can still find it\u00a0<a title=\"MAPA Demo\" href=\"http:\/\/kourentzes.com\/forecasting\/mapa-demo\/\">here<\/a>. You can also still find the <a href=\"http:\/\/kourentzes.com\/forecasting\/wp-content\/uploads\/2014\/07\/shinyMAPA.zip\">two necessary files<\/a> for the old version of this example, one for the server running the R code and one for the user interface.<\/p>\n<div class=\"SPOSTARBUST-Related-Posts\"><H3>Related Posts<\/H3><ul class=\"entry-meta\"><li class=\"SPOSTARBUST-Related-Post\"><a title=\"Special issue on innovations in hierarchical forecasting\" href=\"https:\/\/kourentzes.com\/forecasting\/2020\/10\/25\/special-issue-on-innovations-in-hierarchical-forecasting\/\" rel=\"bookmark\">Special issue on innovations in hierarchical forecasting<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Cross-temporal aggregation: Improving the forecast accuracy of hierarchical electricity consumption\" href=\"https:\/\/kourentzes.com\/forecasting\/2020\/05\/25\/cross-temporal-aggregation-improving-the-forecast-accuracy-of-hierarchical-electricity-consumption\/\" rel=\"bookmark\">Cross-temporal aggregation: Improving the forecast accuracy of hierarchical electricity consumption<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Tutorial for the nnfor R package\" href=\"https:\/\/kourentzes.com\/forecasting\/2019\/01\/16\/tutorial-for-the-nnfor-r-package\/\" rel=\"bookmark\">Tutorial for the nnfor R package<\/a><\/li>\n<\/ul><\/div><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Shiny is a web application framework for R. The idea is simple: deploy R code in webpages. This might prove useful when user interaction is required, for instance to design and deploy forecasting experiments that need human participants. I gave it a try to see how easy is it to build a demo. Assuming your\u2026 <span class=\"read-more\"><a href=\"https:\/\/kourentzes.com\/forecasting\/2014\/07\/26\/experimenting-with-shiny-for-r\/\">Read More &raquo;<\/a><\/span><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[45,38,39,53],"_links":{"self":[{"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/posts\/551"}],"collection":[{"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/comments?post=551"}],"version-history":[{"count":0,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/posts\/551\/revisions"}],"wp:attachment":[{"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/media?parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/categories?post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kourentzes.com\/forecasting\/wp-json\/wp\/v2\/tags?post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->