

{"id":10860,"date":"2018-06-03T21:42:08","date_gmt":"2018-06-04T02:42:08","guid":{"rendered":"https:\/\/rud.is\/b\/?p=10860"},"modified":"2018-06-04T19:34:30","modified_gmt":"2018-06-05T00:34:30","slug":"hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton","status":"publish","type":"post","link":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/","title":{"rendered":"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton)"},"content":{"rendered":"<hr\/>\n<p><em>NOTE: There is some <code>iframe<\/code>d content in this post and you can <a href=\"https:\/\/rud.is\/rpubs\/hello-dorling.html\">bust out of it<\/a> if you want to see the document in a full browser window.<\/em><\/p>\n<p><em>Also, apologies for some lingering GitHub links. I&#8217;m waiting for all the repos to import into to other services and haven&#8217;t had time to setup my own self-hosted public instance of any community-usable git-ish environment yet.<\/em><\/p>\n<hr style=\"padding-top:0px; margin-top:0px; padding-bottom: 0px; margin-bottom:0px\"\/>\n<h3>And So It Begins<\/h3>\n<p>After seeing Fira Sans in action in presentations at <a href=\"https:\/\/2018.erum.io\/\">eRum 2018<\/a> I felt compelled to add  <code>hrbrthemes<\/code> support for it so I made a <a href=\"https:\/\/github.com\/hrbrmstr\/firasans\"><code>firasans<\/code>?<\/a> extension to it that uses Fira Sans Condensed and Fira Code fonts for ggplot2 graphics.<\/p>\n<p>But I really wanted to go the extra mile and make an R Markdown theme for it, yet I&#8217;m weary of both jQuery &amp; Bootstrap, plus prefer <a href=\"http:\/\/prismjs.com\/\">Prism<\/a> over HighlightJS. So I started work on &#8220;Prism Skeleton&#8221;, which is an R Markdown template that has most of the features you would expect and some new ones, plus uses Prism and Fira Sans\/Code. You can try it out on your own if you use <a href=\"https:\/\/github.com\/hrbrmstr\/markdowntemplates\"><code>markdowntemplates<\/code>?<\/a> but the &#8220;production&#8221; version is likely going to eventually go into the <code>firasans<\/code> package. (I use <code>markdowntemplates<\/code> as a playground for R Markdown experiments.)<\/p>\n<p>The source for the <code>iframe<\/code> at the end of this document is here: <a href=\"https:\/\/rud.is\/dl\/hello-dorling.Rmd\">https:\/\/rud.is\/dl\/hello-dorling.Rmd<\/a>. There are some notable features (I&#8217;ll repeat a few from above):<\/p>\n<ul>\n<li>Fira Sans for headers and text<\/li>\n<li>Fira Code for all monospaced content (including source code)<\/li>\n<li>No jQuery<\/li>\n<li>No Bootstrap (it uses the &#8216;Skeleton&#8217; CSS framework)<\/li>\n<li>No HighightJS (it uses the &#8216;Prism&#8221; highlighter)<\/li>\n<li>Extended YAML parameters (more on that in a bit)<\/li>\n<li>Defaults to <code>fig.retina=2<\/code> and the use of <code>optipng<\/code> or <code>pngquant<\/code> for PNG compression (so it expects them to be installed &#8212; ref <a href=\"https:\/\/www.zevross.com\/blog\/2017\/06\/19\/tips-and-tricks-for-working-with-images-and-figures-in-r-markdown-documents\/\">this post by Zev Ross<\/a> for more info and additional image use tips)<\/li>\n<\/ul>\n<h3><em>&#8220;What&#8217;s this about &#8216;Dorling&#8217;?&#8221;<\/em><\/h3>\n<p>Oh, yes. You can read the <code>iframe<\/code> or <a href=\"https:\/\/rud.is\/rpubs\/hello-dorling.html\">busted out document<\/a> for that bit. It&#8217;s a small package to make it easier to create Dorling cartograms based on previous work by @datagistips.<\/p>\n<h3><em>&#8220;You said something about &#8216;extended YAML&#8217;?&#8221;<\/em><\/h3>\n<p>Aye. Here&#8217;s the YAML excerpt from the <a href=\"https:\/\/rud.is\/dl\/hello-dorling.Rmd\">Dorling Rmd<\/a>:<\/p>\n<pre>\n---\ntitle: \"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects)\"\nauthor: \"boB Rudis\"\nnavlink: \"[rud.is](https:\/\/rud.is\/b\/)\"\nog:\n  type: \"article\"\n  title: \"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects)\"\n  url: \"https:\/\/github.com\/hrbrmstr\/spdorling\"\nfooter:\n  - content: '[GitLab](https:\/\/gitlab.com\/hrbrmstr)<br\/>'\n  - content: 'This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.'\ndate: \"`r Sys.Date()`\"\noutput: markdowntemplates::prismskel\n---\n<\/pre>\n<p>The <code>title<\/code>, <code>author<\/code> &amp; <code>date<\/code> should be familiar fields but the <code>author<\/code> and <code>date<\/code> get some different placement since the goal is more of a flowing document than academic report.<\/p>\n<p>If <code>navlink<\/code> is present (it&#8217;s not required) there will be a static bar at the top of the HTML document with a link on the right (any content, really, but a link is what&#8217;s in the example). Remove <code>navlink<\/code> and no bar will be there.<\/p>\n<p>The <code>og<\/code> section is for <a href=\"http:\/\/ogp.me\/\">open graph<\/a> tags and you customize them how you like. Open graph tags make it easier to share posts on social media or even Slack since they&#8217;ll auto-expand various content bits.<\/p>\n<p>There&#8217;s also a custom <code>footer<\/code> (exclude it if you don&#8217;t want one) that can take multiple <code>content<\/code> sub-elements.<\/p>\n<p>The goal isn&#8217;t so much to give you a 100% usable R Markdown template but something you can clone and customize for your own use. Since this example shows how to use custom fonts and a different code highlighter (which meant using some custom <code>knitr<\/code> hooks), it should be easier to customize than some of the other ones in the template playground package. FWIW I plan on adapting this for a work template this week.<\/p>\n<p>The other big customization is the use of Prism with a dark theme. Again, you can clone + customize this at-will but I may add config options for all Prism themes at some point (mostly if there is interest).<\/p>\n<h3>FIN<\/h3>\n<p>(Well, almost <em>fin<\/em>)<\/p>\n<p>Kick the tyres on both the new template and the new package and drop suggestions here for the time being (until I get fully transitioned to a new git-hosting platform). One TODO for <code>spdorling<\/code> is to increase the point count for the circle polygons but I&#8217;m sure folks can come up with enhancement requests to the API after y&#8217;all have played with it for a while.<\/p>\n<p>As noted a few times, the Rmd example with the Dorling cartograms is below.<\/p>\n<p><iframe style=\"width:100%; height:800px;\" src=\"https:\/\/rud.is\/rpubs\/hello-dorling.html\" seamless><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: There is some iframed content in this post and you can bust out of it if you want to see the document in a full browser window. Also, apologies for some lingering GitHub links. I&#8217;m waiting for all the repos to import into to other services and haven&#8217;t had time to setup my own [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10862,"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":false,"_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":[91],"tags":[],"class_list":["post-10860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton) - 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\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton) - rud.is\" \/>\n<meta property=\"og:description\" content=\"NOTE: There is some iframed content in this post and you can bust out of it if you want to see the document in a full browser window. Also, apologies for some lingering GitHub links. I&#8217;m waiting for all the repos to import into to other services and haven&#8217;t had time to setup my own [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/\" \/>\n<meta property=\"og:site_name\" content=\"rud.is\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-04T02:42:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-05T00:34:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1728%2C1152&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1728\" \/>\n\t<meta property=\"og:image:height\" content=\"1152\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/\"},\"author\":{\"name\":\"hrbrmstr\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"headline\":\"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton)\",\"datePublished\":\"2018-06-04T02:42:08+00:00\",\"dateModified\":\"2018-06-05T00:34:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/\"},\"wordCount\":693,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"image\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/dorling.png?fit=1728%2C1152&ssl=1\",\"articleSection\":[\"R\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/\",\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/\",\"name\":\"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton) - rud.is\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/dorling.png?fit=1728%2C1152&ssl=1\",\"datePublished\":\"2018-06-04T02:42:08+00:00\",\"dateModified\":\"2018-06-05T00:34:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/dorling.png?fit=1728%2C1152&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/dorling.png?fit=1728%2C1152&ssl=1\",\"width\":\"1728\",\"height\":\"1152\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2018\\\/06\\\/03\\\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rud.is\\\/b\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton)\"}]},{\"@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":"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton) - 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\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/","og_locale":"en_US","og_type":"article","og_title":"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton) - rud.is","og_description":"NOTE: There is some iframed content in this post and you can bust out of it if you want to see the document in a full browser window. Also, apologies for some lingering GitHub links. I&#8217;m waiting for all the repos to import into to other services and haven&#8217;t had time to setup my own [&hellip;]","og_url":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/","og_site_name":"rud.is","article_published_time":"2018-06-04T02:42:08+00:00","article_modified_time":"2018-06-05T00:34:30+00:00","og_image":[{"width":1728,"height":1152,"url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1728%2C1152&ssl=1","type":"image\/png"}],"author":"hrbrmstr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hrbrmstr","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/#article","isPartOf":{"@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/"},"author":{"name":"hrbrmstr","@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"headline":"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton)","datePublished":"2018-06-04T02:42:08+00:00","dateModified":"2018-06-05T00:34:30+00:00","mainEntityOfPage":{"@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/"},"wordCount":693,"commentCount":1,"publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"image":{"@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1728%2C1152&ssl=1","articleSection":["R"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/","url":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/","name":"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton) - rud.is","isPartOf":{"@id":"https:\/\/rud.is\/b\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/#primaryimage"},"image":{"@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1728%2C1152&ssl=1","datePublished":"2018-06-04T02:42:08+00:00","dateModified":"2018-06-05T00:34:30+00:00","breadcrumb":{"@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/#primaryimage","url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1728%2C1152&ssl=1","contentUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/06\/dorling.png?fit=1728%2C1152&ssl=1","width":"1728","height":"1152"},{"@type":"BreadcrumbList","@id":"https:\/\/rud.is\/b\/2018\/06\/03\/hello-dorling-creating-dorling-cartograms-from-r-spatial-objects-introducing-prism-skeleton\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rud.is\/b\/"},{"@type":"ListItem","position":2,"name":"Hello, Dorling! (Creating Dorling Cartograms from R Spatial Objects + Introducing Prism Skeleton)"}]},{"@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\/2018\/06\/dorling.png?fit=1728%2C1152&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p23idr-2Pa","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":5854,"url":"https:\/\/rud.is\/b\/2017\/04\/30\/r%e2%81%b6-using-pandoc-from-r-a-neat-package-for-reading-subtitles\/","url_meta":{"origin":10860,"position":0},"title":"R\u2076 \u2014 Using pandoc from R + A Neat Package For Reading Subtitles","author":"hrbrmstr","date":"2017-04-30","format":false,"excerpt":"Once I realized that my planned, larger post would not come to fruition today I took the R\u2076 post (i.e. \"minimal expository, keen focus\") route, prompted by a Twitter discussion with some R mates who needed to convert \"lightly formatted\" Microsoft Word (docx) documents to markdown. Something like this: to:\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\/04\/flash.png?fit=1200%2C643&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/04\/flash.png?fit=1200%2C643&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":7138,"url":"https:\/\/rud.is\/b\/2017\/11\/16\/new-ibm-plex-sans-support-in-hrbrthemes-automating-axis-text-justification\/","url_meta":{"origin":10860,"position":1},"title":"New IBM Plex Sans Support in hrbrthemes + Automating Axis Text Justification","author":"hrbrmstr","date":"2017-11-16","format":false,"excerpt":"IBM has a new set of corporate typefaces --- dubbed \"Plex\" --- and has released them with a generous open license. IBM Plex Sans is not too shabby: (that image was grifted from a Font Squirrel preview page) The digit glyphs are especially nice for charts and the font iself\u2026","rel":"","context":"In &quot;ggplot&quot;","block_context":{"text":"ggplot","link":"https:\/\/rud.is\/b\/category\/ggplot\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/11\/README-unnamed-chunk-7-1.png?fit=1200%2C840&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/11\/README-unnamed-chunk-7-1.png?fit=1200%2C840&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/11\/README-unnamed-chunk-7-1.png?fit=1200%2C840&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/11\/README-unnamed-chunk-7-1.png?fit=1200%2C840&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/11\/README-unnamed-chunk-7-1.png?fit=1200%2C840&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":6193,"url":"https:\/\/rud.is\/b\/2017\/08\/29\/rpad-domain-repurposed-to-deliver-creepy-and-potentially-malicious-content\/","url_meta":{"origin":10860,"position":2},"title":"Rpad Domain Repurposed To Deliver Creepy (and potentially malicious) Content","author":"hrbrmstr","date":"2017-08-29","format":false,"excerpt":"I was about to embark on setting up a background task to sift through R package PDFs for traces of functions that \"omit NA values\" as a surprise present for Colin Fay and Sir Tierney: [Please RT]#RStats folks, @nj_tierney & I need your help for {naniar}!When does R silently drop\/omit\u2026","rel":"","context":"In &quot;Cybersecurity&quot;","block_context":{"text":"Cybersecurity","link":"https:\/\/rud.is\/b\/category\/cybersecurity\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/Plot_Zoom.png?fit=868%2C1200&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/Plot_Zoom.png?fit=868%2C1200&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/Plot_Zoom.png?fit=868%2C1200&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/Plot_Zoom.png?fit=868%2C1200&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":6146,"url":"https:\/\/rud.is\/b\/2017\/08\/01\/r%e2%81%b6-reticulating-parquet-files\/","url_meta":{"origin":10860,"position":3},"title":"R\u2076 \u2014 Reticulating Parquet Files","author":"hrbrmstr","date":"2017-08-01","format":false,"excerpt":"The reticulate package provides a very clean & concise interface bridge between R and Python which makes it handy to work with modules that have yet to be ported to R (going native is always better when you can do it). This post shows how to use reticulate to create\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":5206,"url":"https:\/\/rud.is\/b\/2017\/03\/27\/all-in-on-r%e2%81%b4-progress-bars-on-first-post\/","url_meta":{"origin":10860,"position":4},"title":"All-in on R\u2076 : Progress [bars] on first post","author":"hrbrmstr","date":"2017-03-27","format":false,"excerpt":"@eddelbuettel's idea is a good one. (it's a quick read\u2026jump there and come back). We'll avoid confusion and call it R\u2076 over here. Feel free to don the superclass. I often wait for a complete example or new package announcement to blog something when a briefly explained snippet might have\u2026","rel":"","context":"In &quot;dplyr&quot;","block_context":{"text":"dplyr","link":"https:\/\/rud.is\/b\/category\/dplyr\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4696,"url":"https:\/\/rud.is\/b\/2016\/12\/05\/interacting-with-amazon-athena-from-r\/","url_meta":{"origin":10860,"position":5},"title":"Interacting With Amazon Athena from R","author":"hrbrmstr","date":"2016-12-05","format":false,"excerpt":"This is a short post for those looking to test out Amazon Athena with R. Amazon makes Athena available via JDBC, so you can use RJDBC to query data. All you need is their JAR file and some setup information. Here's how to get the JAR file to the current\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\/10860","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=10860"}],"version-history":[{"count":0,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/10860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media\/10862"}],"wp:attachment":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media?parent=10860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/categories?post=10860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/tags?post=10860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}