

{"id":5055,"date":"2017-02-18T11:03:42","date_gmt":"2017-02-18T16:03:42","guid":{"rendered":"https:\/\/rud.is\/b\/?p=5055"},"modified":"2018-03-10T07:54:27","modified_gmt":"2018-03-10T12:54:27","slug":"putting-it-all-together","status":"publish","type":"post","link":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/","title":{"rendered":"Putting It All Together"},"content":{"rendered":"<p>The kind folks over at @RStudio <a href=\"https:\/\/rviews.rstudio.com\/2017\/02\/17\/january-new-data-packages\/\">gave a nod<\/a> to my recently CRAN-released <a href=\"https:\/\/github.com\/hrbrmstr\/epidata\"><code>epidata<\/code><\/a> package in their January data package roundup and I thought it might be useful to give it one more showcase using the recent CRAN update to <a href=\"https:\/\/github.com\/hrbrmstr\/ggalt\"><code>ggalt<\/code><\/a> and the new <a href=\"https:\/\/github.com\/hrbrmstr\/hrbrthemes\"><code>hrbrthemes<\/code><\/a> (github-only for now) packages.<\/p>\n<h3>Labor force participation rate<\/h3>\n<p>The U.S. labor force participation rate (LFPR) is an oft-overlooked and under- or mis-reported economic indicator. I&#8217;ll borrow the definition from Investopedia:<\/p>\n<div style=\"margin-left:36pt; padding-left: 6pt; font-weight: 100; font-style:italic; color:#b2b2b2; border-left:2px solid #b2b2b2\">\nThe participation rate is a measure of the active portion of an economy&#8217;s labor force. It refers to the number of people who are either employed or are actively looking for work. During an economic recession, many workers often get discouraged and stop looking for employment, resulting in a decrease in the participation rate.\n<\/div>\n<p>Population age distributions and other factors are necessary to honestly interpret this statistic. Parties in power usually dismiss\/ignore this statistic outright and their opponents tend to wholly embrace it for criticism (it&#8217;s an easy target if you&#8217;re naive). &#8220;Yay&#8221; partisan democracy.<\/p>\n<p>Since the LFPR has nuances when looked at categorically, let&#8217;s take a look at it by attained education level to see how that particular view has changed over time (at least since the gov-quants have been tracking it).<\/p>\n<p>We can easily grab this data with <code>epidata::get_labor_force_participation_rate()<\/code>(and, we&#8217;ll setup some <code>library()<\/code> calls while we&#8217;re at it:<\/p>\n<pre id=\"lfpr-01\"><code class=\"language-r\">library(epidata)\r\nlibrary(hrbrthemes) # devtools::install_github(&quot;hrbrmstr\/hrbrthemes&quot;)\r\nlibrary(ggalt)\r\nlibrary(tidyverse)\r\nlibrary(stringi)\r\n\r\npart_rate &lt;- get_labor_force_participation_rate(&quot;e&quot;)\r\n\r\nglimpse(part_rate)\r\n## Observations: 457\r\n## Variables: 7\r\n## $ date              &lt;date&gt; 1978-12-01, 1979-01-01, 1979-02-01, 1979-03-01, 1979-04-01, 1979-05-01...\r\n## $ all               &lt;dbl&gt; 0.634, 0.634, 0.635, 0.636, 0.636, 0.637, 0.637, 0.637, 0.638, 0.638, 0...\r\n## $ less_than_hs      &lt;dbl&gt; 0.474, 0.475, 0.475, 0.475, 0.475, 0.474, 0.474, 0.473, 0.473, 0.473, 0...\r\n## $ high_school       &lt;dbl&gt; 0.690, 0.691, 0.692, 0.692, 0.693, 0.693, 0.694, 0.694, 0.695, 0.696, 0...\r\n## $ some_college      &lt;dbl&gt; 0.709, 0.710, 0.711, 0.712, 0.712, 0.713, 0.712, 0.712, 0.712, 0.712, 0...\r\n## $ bachelor&#039;s_degree &lt;dbl&gt; 0.771, 0.772, 0.772, 0.773, 0.772, 0.772, 0.772, 0.772, 0.772, 0.773, 0...\r\n## $ advanced_degree   &lt;dbl&gt; 0.847, 0.847, 0.848, 0.848, 0.848, 0.848, 0.847, 0.847, 0.848, 0.848, 0...<\/code><\/pre>\n<p>One of the easiest things to do is to use <code>ggplot2<\/code> to make a faceted line chart by attained education level. But, let&#8217;s change the labels so they are a bit easier on the eyes in the facets and switch the facet order from alphabetical to something more useful:<\/p>\n<pre id=\"lfpr-02\"><code class=\"language-r\">gather(part_rate, category, rate, -date) %&gt;% \r\n  mutate(category=stri_replace_all_fixed(category, &quot;_&quot;, &quot; &quot;),\r\n         category=stri_trans_totitle(category),\r\n         category=stri_replace_last_regex(category, &quot;Hs$&quot;, &quot;High School&quot;),\r\n         category=factor(category, levels=c(&quot;Advanced Degree&quot;, &quot;Bachelor&#039;s Degree&quot;, &quot;Some College&quot;, \r\n                                            &quot;High School&quot;, &quot;Less Than High School&quot;, &quot;All&quot;)))  -&gt; part_rate<\/code><\/pre>\n<p>Now, we&#8217;ll make a simple line chart, tweaking the aesthetics just a bit:<\/p>\n<pre id=\"lfpr-03\"><code class=\"language-r\">ggplot(part_rate) +\r\n  geom_line(aes(date, rate, group=category)) +\r\n  scale_y_percent(limits=c(0.3, 0.9)) +\r\n  facet_wrap(~category, scales=&quot;free&quot;) +\r\n  labs(x=paste(format(range(part_rate$date), &quot;%Y-%b&quot;), collapse=&quot; to &quot;), \r\n       y=&quot;Participation rate (%)&quot;, \r\n       title=&quot;U.S. Labor Force Participation Rate&quot;,\r\n       caption=&quot;Source: EPI analysis of basic monthly Current Population Survey microdata.&quot;) +\r\n  theme_ipsum_rc(grid=&quot;XY&quot;, axis=&quot;XY&quot;)<\/code><\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5069\" data-permalink=\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/rstudio-17\/\" data-orig-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-2.png?fit=1930%2C1048&amp;ssl=1\" data-orig-size=\"1930,1048\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"RStudio\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-2.png?fit=300%2C163&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-2.png?fit=510%2C277&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-2.png?resize=510%2C277&#038;ssl=1\" alt=\"\" width=\"510\" height=\"277\" class=\"aligncenter size-full wp-image-5069\" \/><\/p>\n<p>The &#8220;All&#8221; view is interesting in that the LFPR has held fairly &#8220;steady&#8221; between 60% &amp; 70%. Those individual and fractional percentage points actually translate to real humans, so the &#8220;minor&#8221; fluctuations do matter.<\/p>\n<p>It&#8217;s also interesting to see the direct contrast between the starting historical rate and current rate (you could also do the same with min\/max rates, etc.) We can use a &#8220;dumbbell&#8221; chart to compare the 1978 value to today&#8217;s value, but we&#8217;ll need to reshape the data a bit first:<\/p>\n<pre id=\"lfpr-04\"><code class=\"language-r\">group_by(part_rate, category) %&gt;% \r\n  arrange(date) %&gt;% \r\n  slice(c(1, n())) %&gt;% \r\n  spread(date, rate) %&gt;% \r\n  ungroup() %&gt;% \r\n  filter(category != &quot;All&quot;) %&gt;% \r\n  mutate(category=factor(category, levels=rev(levels(category)))) -&gt; rate_range\r\n\r\nfilter(part_rate, category==&quot;Advanced Degree&quot;) %&gt;% \r\n  arrange(date) %&gt;% \r\n  slice(c(1, n())) %&gt;% \r\n  mutate(lab=lubridate::year(date)) -&gt; lab_df<\/code><\/pre>\n<p>(We&#8217;ll be using the extra data frame to add labels the chart.)<\/p>\n<p>Now, we can compare the various ranges, once again tweaking aesthetics a bit:<\/p>\n<pre id=\"lfpr-05\"><code class=\"language-r\">ggplot(rate_range) +\r\n  geom_dumbbell(aes(y=category, x=`1978-12-01`, xend=`2016-12-01`),\r\n                size=3, color=&quot;#e3e2e1&quot;,\r\n                colour_x = &quot;#5b8124&quot;, colour_xend = &quot;#bad744&quot;,\r\n                dot_guide=TRUE, dot_guide_size=0.25) +\r\n  geom_text(data=lab_df, aes(x=rate, y=5.25, label=lab), vjust=0) +\r\n  scale_x_percent(limits=c(0.375, 0.9)) +\r\n  labs(x=NULL, y=NULL,\r\n       title=sprintf(&quot;U.S. Labor Force Participation Rate %s-Present&quot;, lab_df$lab[1]),\r\n       caption=&quot;Source: EPI analysis of basic monthly Current Population Survey microdata.&quot;) +\r\n  theme_ipsum_rc(grid=&quot;X&quot;)<\/code><\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"5076\" data-permalink=\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/rstudio-18\/\" data-orig-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&amp;ssl=1\" data-orig-size=\"1746,574\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"RStudio\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=300%2C99&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=510%2C168&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?resize=510%2C168&#038;ssl=1\" alt=\"\" width=\"510\" height=\"168\" class=\"aligncenter size-full wp-image-5076\" \/><\/p>\n<h3>Fin<\/h3>\n<p>One takeaway from both these charts is that it&#8217;s probably important to take education level into account when talking about the labor force participation rate. The <code>get_labor_force_participation_rate()<\/code> function &mdash; along with most other functions in the <code>epidata<\/code> package &mdash; also has options to factor the data by sex, race and age, so you can pull in all those views to get a more nuanced &amp; informed understanding of this economic health indicator.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The kind folks over at @RStudio gave a nod to my recently CRAN-released epidata package in their January data package roundup and I thought it might be useful to give it one more showcase using the recent CRAN update to ggalt and the new hrbrthemes (github-only for now) packages. Labor force participation rate The U.S. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[753,91],"tags":[810],"class_list":["post-5055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ggplot","category-r","tag-post"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Putting It All Together - rud.is<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Putting It All Together - rud.is\" \/>\n<meta property=\"og:description\" content=\"The kind folks over at @RStudio gave a nod to my recently CRAN-released epidata package in their January data package roundup and I thought it might be useful to give it one more showcase using the recent CRAN update to ggalt and the new hrbrthemes (github-only for now) packages. Labor force participation rate The U.S. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/\" \/>\n<meta property=\"og:site_name\" content=\"rud.is\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-18T16:03:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-10T12:54:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1746\" \/>\n\t<meta property=\"og:image:height\" content=\"574\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"hrbrmstr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"hrbrmstr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/\"},\"author\":{\"name\":\"hrbrmstr\",\"@id\":\"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886\"},\"headline\":\"Putting It All Together\",\"datePublished\":\"2017-02-18T16:03:42+00:00\",\"dateModified\":\"2018-03-10T12:54:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/\"},\"wordCount\":505,\"commentCount\":9,\"publisher\":{\"@id\":\"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886\"},\"image\":{\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1\",\"keywords\":[\"post\"],\"articleSection\":[\"ggplot\",\"R\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/\",\"url\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/\",\"name\":\"Putting It All Together - rud.is\",\"isPartOf\":{\"@id\":\"https:\/\/rud.is\/b\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1\",\"datePublished\":\"2017-02-18T16:03:42+00:00\",\"dateModified\":\"2018-03-10T12:54:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1\",\"width\":1746,\"height\":574},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/rud.is\/b\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Putting It All Together\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/rud.is\/b\/#website\",\"url\":\"https:\/\/rud.is\/b\/\",\"name\":\"rud.is\",\"description\":\"&quot;In God we trust. All others must bring data&quot;\",\"publisher\":{\"@id\":\"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/rud.is\/b\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886\",\"name\":\"hrbrmstr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1\",\"url\":\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1\",\"width\":460,\"height\":460,\"caption\":\"hrbrmstr\"},\"logo\":{\"@id\":\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1\"},\"description\":\"Don't look at me\u2026I do what he does \u2014 just slower. #rstats avuncular \u2022 ?Resistance Fighter \u2022 Cook \u2022 Christian \u2022 [Master] Chef des Donn\u00e9es de S\u00e9curit\u00e9 @ @rapid7\",\"sameAs\":[\"http:\/\/rud.is\"],\"url\":\"https:\/\/rud.is\/b\/author\/hrbrmstr\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Putting It All Together - rud.is","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/","og_locale":"en_US","og_type":"article","og_title":"Putting It All Together - rud.is","og_description":"The kind folks over at @RStudio gave a nod to my recently CRAN-released epidata package in their January data package roundup and I thought it might be useful to give it one more showcase using the recent CRAN update to ggalt and the new hrbrthemes (github-only for now) packages. Labor force participation rate The U.S. [&hellip;]","og_url":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/","og_site_name":"rud.is","article_published_time":"2017-02-18T16:03:42+00:00","article_modified_time":"2018-03-10T12:54:27+00:00","og_image":[{"width":1746,"height":574,"url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1","type":"image\/png"}],"author":"hrbrmstr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hrbrmstr","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#article","isPartOf":{"@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/"},"author":{"name":"hrbrmstr","@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"headline":"Putting It All Together","datePublished":"2017-02-18T16:03:42+00:00","dateModified":"2018-03-10T12:54:27+00:00","mainEntityOfPage":{"@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/"},"wordCount":505,"commentCount":9,"publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"image":{"@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1","keywords":["post"],"articleSection":["ggplot","R"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/","url":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/","name":"Putting It All Together - rud.is","isPartOf":{"@id":"https:\/\/rud.is\/b\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#primaryimage"},"image":{"@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1","datePublished":"2017-02-18T16:03:42+00:00","dateModified":"2018-03-10T12:54:27+00:00","breadcrumb":{"@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#primaryimage","url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1","contentUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1","width":1746,"height":574},{"@type":"BreadcrumbList","@id":"https:\/\/rud.is\/b\/2017\/02\/18\/putting-it-all-together\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rud.is\/b\/"},{"@type":"ListItem","position":2,"name":"Putting It All Together"}]},{"@type":"WebSite","@id":"https:\/\/rud.is\/b\/#website","url":"https:\/\/rud.is\/b\/","name":"rud.is","description":"&quot;In God we trust. All others must bring data&quot;","publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rud.is\/b\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886","name":"hrbrmstr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","contentUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","width":460,"height":460,"caption":"hrbrmstr"},"logo":{"@id":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1"},"description":"Don't look at me\u2026I do what he does \u2014 just slower. #rstats avuncular \u2022 ?Resistance Fighter \u2022 Cook \u2022 Christian \u2022 [Master] Chef des Donn\u00e9es de S\u00e9curit\u00e9 @ @rapid7","sameAs":["http:\/\/rud.is"],"url":"https:\/\/rud.is\/b\/author\/hrbrmstr\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/RStudio-3.png?fit=1746%2C574&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p23idr-1jx","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":6215,"url":"https:\/\/rud.is\/b\/2017\/09\/04\/readability-redux\/","url_meta":{"origin":5055,"position":0},"title":"Readability Redux","author":"hrbrmstr","date":"2017-09-04","format":false,"excerpt":"I recently posted about using a Python module to convert HTML to usable text. Since then, a new package has hit CRAN dubbed htm2txt that is 100% R and uses regular expressions to strip tags from text. I gave it a spin so folks could compare some basic output, but\u2026","rel":"","context":"In &quot;data wrangling&quot;","block_context":{"text":"data wrangling","link":"https:\/\/rud.is\/b\/category\/data-wrangling\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6111,"url":"https:\/\/rud.is\/b\/2017\/07\/17\/ten-hut-the-apache-drill-r-interface-package-sergeant-is-now-on-cran\/","url_meta":{"origin":5055,"position":1},"title":"Ten-HUT! The Apache Drill R interface package \u2014\u00a0sergeant \u2014\u00a0is now on CRAN","author":"hrbrmstr","date":"2017-07-17","format":false,"excerpt":"I'm extremely pleased to announce that the sergeant package is now on CRAN or will be hitting your local CRAN mirror soon. sergeant provides JDBC, DBI and dplyr\/dbplyr interfaces to Apache Drill. I've also wrapped a few goodies into the dplyr custom functions that work with Drill and if you\u2026","rel":"","context":"In &quot;Apache Drill&quot;","block_context":{"text":"Apache Drill","link":"https:\/\/rud.is\/b\/category\/apache-drill\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11765,"url":"https:\/\/rud.is\/b\/2019\/01\/14\/splashr-0-6-0-now-uses-the-cran-nascent-stevedore-package-for-docker-orchestration\/","url_meta":{"origin":5055,"position":2},"title":"splashr 0.6.0 Now Uses the CRAN-nascent stevedore Package for Docker Orchestration","author":"hrbrmstr","date":"2019-01-14","format":false,"excerpt":"The splashr package [srht|GL|GH] \u2014 an alternative to Selenium for javascript-enabled\/browser-emulated web scraping \u2014 is now at version 0.6.0 (still in dev-mode but on its way to CRAN in the next 14 days). The major change from version 0.5.x (which never made it to CRAN) is a swap out of\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6206,"url":"https:\/\/rud.is\/b\/2017\/08\/29\/new-cran-package-announcement-splashr\/","url_meta":{"origin":5055,"position":3},"title":"New CRAN Package Announcement: splashr","author":"hrbrmstr","date":"2017-08-29","format":false,"excerpt":"I'm pleased to announce that splashr is now on CRAN. (That image was generated with splashr::render_png(url = \"https:\/\/cran.r-project.org\/web\/packages\/splashr\/\")). The package is an R interface to the Splash javascript rendering service. It works in a similar fashion to Selenium but is fear more geared to web scraping and has quite a\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/splashr.png?fit=1066%2C1108&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/splashr.png?fit=1066%2C1108&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/splashr.png?fit=1066%2C1108&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/splashr.png?fit=1066%2C1108&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/splashr.png?fit=1066%2C1108&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3460,"url":"https:\/\/rud.is\/b\/2015\/06\/15\/metricsgraphics-0-8-5-is-now-on-cran\/","url_meta":{"origin":5055,"position":4},"title":"metricsgraphics 0.8.5 is now on CRAN!","author":"hrbrmstr","date":"2015-06-15","format":false,"excerpt":"I'm super-pleased to announce that the Benevolent CRAN Overlords [accepted the metricsgraphics package](http:\/\/cran.r-project.org\/web\/packages\/metricsgraphics\/index.html) into CRAN over the weekend. Now, you no longer need to rely on github\/devtools to use [MetricsGraphics.js](http:\/\/metricsgraphicsjs.org\/) charts from your R scripts. If you're not familiar with `htmlwidgets`, take a look at [the official site for them](http:\/\/www.htmlwidgets.org\/).\u2026","rel":"","context":"In &quot;d3&quot;","block_context":{"text":"d3","link":"https:\/\/rud.is\/b\/category\/d3\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12430,"url":"https:\/\/rud.is\/b\/2019\/07\/27\/two-new-testing-themed-addins-one-new-and-one-updated-cran-package\/","url_meta":{"origin":5055,"position":5},"title":"Two New Testing-themed Addins + One New and One Updated CRAN Package","author":"hrbrmstr","date":"2019-07-27","format":false,"excerpt":"It's been yet-another weirdly busy summer but I'm finally catching up on noting some recent-ish developments in the blog. First up is a full rewrite of the {wand} pacakge which still uses magic but is 100% R code (vs a mix of compiled C and R code) and now works\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/5055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/comments?post=5055"}],"version-history":[{"count":0,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/5055\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media\/5076"}],"wp:attachment":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media?parent=5055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/categories?post=5055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/tags?post=5055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}