{"id":1814,"date":"2020-08-03T01:10:05","date_gmt":"2020-08-03T01:10:05","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=1814"},"modified":"2020-08-03T12:43:27","modified_gmt":"2020-08-03T12:43:27","slug":"tidyx-episode-21-pairs-plots-for-exploring-data","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-episode-21-pairs-plots-for-exploring-data\/","title":{"rendered":"TidyX Episode 21: Pairs Plots for Exploring Data"},"content":{"rendered":"<p>Pairs plots are plots of data in a matrix format to allow one to visualize as many numeric relationships as they would like. Oftentimes the data are plotted as scatter plots, however, this format can be extended to include other visualizations such as histograms, boxplots, and even correlation coefficients.<\/p>\n<p>This week, <a href=\"https:\/\/twitter.com\/ellis_hughes\"><strong><span style=\"color: #0000ff;\">Ellis Hughes<\/span><\/strong><\/a> and I explore these types of plots using the {<span style=\"color: #0000ff;\"><strong>palmerpenguins<\/strong><\/span>} data set pulled together by <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/allison_horst\">Allison Horst<\/a><\/span><\/strong> for the <strong><a href=\"https:\/\/github.com\/rfordatascience\/tidytuesday\"><span style=\"color: #0000ff;\">TidyTuesday Project<\/span><\/a><\/strong>.<\/p>\n<p>This is a really fun data set for starting out in R because the data is very clean and has a few columns with nice relationships that can be exploited with statistical models. Ellis and I discuss some potential use cases for modeling this data and then we create a number of plots of the data to show various statistical relationships. We create pair plots using the {<span style=\"color: #0000ff;\"><strong>GGally<\/strong><\/span>} package and then we build some interactive {<span style=\"color: #0000ff;\"><strong>plotly<\/strong><\/span>} graphics with the data and explain how to build interactive visualizations of regression coefficients from a linear model.<\/p>\n<p>Finally, we wrap up by going through the code of <strong><a href=\"https:\/\/twitter.com\/RomanMLink\"><span style=\"color: #0000ff;\">Roman Link<\/span><\/a><\/strong>. Roman created his own package, {<a href=\"https:\/\/github.com\/r-link\/corrmorant\"><strong><span style=\"color: #0000ff;\">corrmorant<\/span><\/strong><\/a>}, for creating pairs plots. This package offers a ton of flexibility and allows you to style the visualization in a more customized way. We had a lot of fun playing around with the package and the final project that Roman created using the {<span style=\"color: #0000ff;\"><strong>palmerpenguins<\/strong><\/span>} data set was this:<\/p>\n<p><a href=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-02-at-6.03.58-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1815\" src=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-02-at-6.03.58-PM-1024x860.png\" alt=\"\" width=\"625\" height=\"525\" srcset=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-02-at-6.03.58-PM-1024x860.png 1024w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-02-at-6.03.58-PM-300x252.png 300w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-02-at-6.03.58-PM-768x645.png 768w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-02-at-6.03.58-PM-624x524.png 624w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2020\/08\/Screen-Shot-2020-08-02-at-6.03.58-PM.png 1582w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>To listen to the screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=8yxLtsvOqDw&amp;feature=youtu.be\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>To check out our code, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/thebioengineer\/TidyX\/tree\/master\/TidyTuesday_Explained\/021-The_Birds\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pairs plots are plots of data in a matrix format to allow one to visualize as many numeric relationships as they would like. Oftentimes the data are plotted as scatter plots, however, this format can be extended to include other visualizations such as histograms, boxplots, and even correlation coefficients. This week, Ellis Hughes and I [&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-1814","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1814","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=1814"}],"version-history":[{"count":1,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1814\/revisions"}],"predecessor-version":[{"id":1816,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1814\/revisions\/1816"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=1814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=1814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=1814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}