{"id":1838,"date":"2020-09-07T00:11:35","date_gmt":"2020-09-07T00:11:35","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=1838"},"modified":"2020-09-07T12:06:08","modified_gmt":"2020-09-07T12:06:08","slug":"tidyx-26-shiny-apps-part-1-creating-an-nba-dashboard","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-26-shiny-apps-part-1-creating-an-nba-dashboard\/","title":{"rendered":"TidyX 26: Shiny Apps Part 1 &#8211; Creating an NBA Dashboard"},"content":{"rendered":"<p>Building off our <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-25-intro-to-shiny-apps\/\">screen cast from last week<\/a><\/span><\/strong>, where we discussed the basics of reactivity in a {<span style=\"color: #0000ff;\"><strong>shiny<\/strong><\/span>} app, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/span><\/strong> and I expand on the concept and begin constructing the pieces of our NBA dashboard. For inspiration purposes, we are building elements similar to <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/projects.fivethirtyeight.com\/carmelo\/\">Five Thirty Eight&#8217;s CARMELO NBA Player Projection webpage<\/a><\/span><\/strong>.<\/p>\n<p>We start by creating the table and percentile charts in an interactive web app:<\/p>\n<p><a href=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-06-at-5.05.55-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1839\" src=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-06-at-5.05.55-PM-1024x431.png\" alt=\"\" width=\"625\" height=\"263\" srcset=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-06-at-5.05.55-PM-1024x431.png 1024w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-06-at-5.05.55-PM-300x126.png 300w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-06-at-5.05.55-PM-768x323.png 768w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-06-at-5.05.55-PM-624x263.png 624w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-06-at-5.05.55-PM.png 1830w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>But before we get into that, we break down the code of <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/MrOchiwar\/status\/1300934794772189185\">@MrOchiwar<\/a><\/span><\/strong>, who made some really nice line plots of Nigerian crop yields over time, using data provided by the <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/rfordatascience\/tidytuesday\">TidyTuesday project<\/a><\/span><\/strong>.<\/p>\n<p>To watch the screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=7vfB1eeeMjs&amp;feature=youtu.be\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>To access our code, <a href=\"https:\/\/github.com\/thebioengineer\/TidyX\/tree\/master\/TidyTuesday_Explained\/026-Labels_and_ShinyCARMELO_Part_1\"><strong><span style=\"color: #0000ff;\">CLICK HERE<\/span><\/strong><\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Building off our screen cast from last week, where we discussed the basics of reactivity in a {shiny} app, Ellis Hughes and I expand on the concept and begin constructing the pieces of our NBA dashboard. For inspiration purposes, we are building elements similar to Five Thirty Eight&#8217;s CARMELO NBA Player Projection webpage. We start [&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-1838","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1838","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=1838"}],"version-history":[{"count":2,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1838\/revisions"}],"predecessor-version":[{"id":1841,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1838\/revisions\/1841"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=1838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=1838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=1838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}