{"id":1937,"date":"2020-12-28T01:55:09","date_gmt":"2020-12-28T01:55:09","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=1937"},"modified":"2020-12-28T19:18:10","modified_gmt":"2020-12-28T19:18:10","slug":"tidyx-42-plotly-shiny-nhl-hockey","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-42-plotly-shiny-nhl-hockey\/","title":{"rendered":"TidyX 42: plotly, shiny, &#038; NHL Hockey"},"content":{"rendered":"<p>This week, <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/strong><\/span> and I begin by explaining code from Peter (<strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/DataVizGuy_1648\/status\/1341437551085797376\">@DataVizGuy_1648<\/a><\/span><\/strong>), who made a cool line plot for the Big Mac Index, which used colors to emphasizes the top 5 and bottom 5 countries for the price of a Big Mac, scaled to US Dollars, over time (data courtesy of <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/rfordatascience\/tidytuesday\/blob\/master\/data\/2020\/2020-10-06\/readme.md\">TidyTuesday Project<\/a><\/strong><\/span>).<\/p>\n<p>After that, we build on some of the work we did in <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-41-special-guest-alice-sweeting\/\">TidyX 41<\/a><\/strong><\/span>, as we dive deeper into {plotly} and build an interactive NHL data visualization. We then take our {plotly} visualization and build it into a {shiny} app.<\/p>\n<p><a href=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-27-at-5.52.41-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1938\" src=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-27-at-5.52.41-PM-1024x692.png\" alt=\"\" width=\"625\" height=\"422\" srcset=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-27-at-5.52.41-PM-1024x692.png 1024w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-27-at-5.52.41-PM-300x203.png 300w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-27-at-5.52.41-PM-768x519.png 768w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-27-at-5.52.41-PM-624x422.png 624w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/12\/Screen-Shot-2020-12-27-at-5.52.41-PM.png 1806w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>To watch the screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=0GPWUH1AYa0&amp;feature=youtu.be\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>To access our code, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/thebioengineer\/TidyX\/tree\/master\/TidyTuesday_Explained\/042-Highlighting_Lines\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week, Ellis Hughes and I begin by explaining code from Peter (@DataVizGuy_1648), who made a cool line plot for the Big Mac Index, which used colors to emphasizes the top 5 and bottom 5 countries for the price of a Big Mac, scaled to US Dollars, over time (data courtesy of TidyTuesday Project). After [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-1937","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/comments?post=1937"}],"version-history":[{"count":3,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1937\/revisions"}],"predecessor-version":[{"id":1941,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1937\/revisions\/1941"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=1937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=1937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=1937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}