

{"id":1738,"date":"2012-10-27T20:21:20","date_gmt":"2012-10-28T01:21:20","guid":{"rendered":"http:\/\/rud.is\/b\/?p=1738"},"modified":"2017-03-27T09:43:18","modified_gmt":"2017-03-27T14:43:18","slug":"watch-sandy-in-r","status":"publish","type":"post","link":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/","title":{"rendered":"Watch &#8220;Sandy&#8221; In R"},"content":{"rendered":"<blockquote><p><b>UPDATE<\/b>: <\/p>\n<ul>\n<li>Significantly updated code on <a href=\"https:\/\/github.com\/hrbrmstr\/sandy\">github<\/a><\/li>\n<li>Well, a couple folks asked how to make it more &#8220;centered&#8221; on the hurricane and stop the labels from chopping off, so I modified the previous code a bit to show how to do that.<\/li>\n<\/ul>\n<\/blockquote>\n<blockquote><p>As indicated in the code comments, Google took down the cone KML files. I&#8217;ll be changing the code to use the NHC archived cone files later tonight<\/p><\/blockquote>\n<p>While this will pale in comparison to the <code>#spiffy<\/code> <a href=\"https:\/\/www.wunderground.com\/wundermap\/?lat=36.02016&amp;lon=-61.24204&amp;zoom=4&amp;type=terrain&amp;units=english&amp;rad=0&amp;sat=0&amp;stormreports=0&amp;svr=0&amp;pix=0&amp;cams=0&amp;tor=0&amp;riv=0&amp;wxsn=0&amp;ski=0&amp;tfk=0&amp;mm=1&amp;mm.mdl=GFS&amp;mm.type=SURPRE&amp;mm.hour=63&amp;mm.opa=100&amp;ndfd=0&amp;fire=0&amp;firewfas=0&amp;pep=0&amp;extremes=0&amp;dir=0&amp;hur=0\" target=\"_blank\">Sandy graphics on Weather Underground<\/a> and other sites (including <a href=\"http:\/\/crisislanding.appspot.com\/crisismap\/2012-sandy\">Google&#8217;s &#8220;Crisis Center&#8221;<\/a> maps), I thought it might be interesting to show folks how they can keep an eye on &#8220;Sandy&#8221; using R.<\/p>\n<pre lang=\"rsplus\">library(maps)\r\n\r\ntrim.trailing <- function (x) sub(\"\\\\s+$\", \"\", x)\r\n\r\nwx = read.table(file=\"http:\/\/weather.unisys.com\/hurricane\/atlantic\/2012\/SANDY\/track.dat\", skip=3,fill=TRUE)\r\nwx$V7 = trim.trailing(paste(wx$V7,wx$V8,\" \"))\r\nwx$V8 = NULL\r\ncolnames(wx) = c(\"Advisory\",\"Latitude\",\"Longitude\",\"Time\",\"WindSpeed\",\"Pressure\",\"Status\")\r\n\r\nwx$Advisory = unlist(strsplit(toString(wx$Advisory),\", \"))\r\nwx$a = \"\"\r\nwx$a[grep(\"\\\\+\",wx$Advisory)] = wx$Advisory[grep(\"\\\\+\",wx$Advisory)]\r\nwx$Status = trim.trailing(paste(wx$Status,wx$a,\" \"))\r\n\r\nwx$color = \"red\"\r\nwx$color[grep(\"\\\\+\",wx$Advisory)] = \"orange\"\r\n\r\nxlim=c(-90,-60)\r\n\r\nmap(\"state\", interior = FALSE, xlim=xlim)\r\nmap(\"state\", boundary = FALSE, col=\"gray\", add = TRUE,xlim=xlim)\r\n\r\npoints(x=wx$Longitude,y=wx$Latitude,col=wx$color,pch=17,cex=0.75)\r\n\r\ntext(x=wx$Longitude,y=wx$Latitude,col='blue',labels=wx$Status,adj=c(-.15),cex=0.33)\r\nbox()<\/pre>\n<p><center><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1747\" data-permalink=\"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/snapshot-102712-940-pm\/\" data-orig-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png?fit=491%2C503&amp;ssl=1\" data-orig-size=\"491,503\" 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;}\" data-image-title=\"Snapshot 10:27:12 9:40 PM\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png?fit=491%2C503&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png?resize=491%2C503&#038;ssl=1\" alt=\"\" title=\"Snapshot 10:27:12 9:40 PM\" width=\"491\" height=\"503\" class=\"alignnone size-full wp-image-1747\" srcset=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png?w=491&amp;ssl=1 491w, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png?resize=292%2C300&amp;ssl=1 292w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/center><\/p>\n<p>This short script reads in data from the <a href=\"http:\/\/weather.unisys.com\/hurricane\/atlantic\/2012\/index.php\">Unisys Hurricane Weather Center<\/a> and plots colored symbols on a US map with the forecast projections. I may be extending this, but it's a good starting point for anyone who wants to play with mapping relatively live data from the internet (or learn some more R).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UPDATE: Significantly updated code on github Well, a couple folks asked how to make it more &#8220;centered&#8221; on the hurricane and stop the labels from chopping off, so I modified the previous code a bit to show how to do that. As indicated in the code comments, Google took down the cone KML files. I&#8217;ll [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"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":[91],"tags":[],"class_list":["post-1738","post","type-post","status-publish","format-standard","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>Watch &quot;Sandy&quot; In R - 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\/2012\/10\/27\/watch-sandy-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Watch &quot;Sandy&quot; In R - rud.is\" \/>\n<meta property=\"og:description\" content=\"UPDATE: Significantly updated code on github Well, a couple folks asked how to make it more &#8220;centered&#8221; on the hurricane and stop the labels from chopping off, so I modified the previous code a bit to show how to do that. As indicated in the code comments, Google took down the cone KML files. I&#8217;ll [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"rud.is\" \/>\n<meta property=\"article:published_time\" content=\"2012-10-28T01:21:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-03-27T14:43:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/\"},\"author\":{\"name\":\"hrbrmstr\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"headline\":\"Watch &#8220;Sandy&#8221; In R\",\"datePublished\":\"2012-10-28T01:21:20+00:00\",\"dateModified\":\"2017-03-27T14:43:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/\"},\"wordCount\":169,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"image\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/Snapshot-102712-940-PM.png\",\"articleSection\":[\"R\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/\",\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/\",\"name\":\"Watch \\\"Sandy\\\" In R - rud.is\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/Snapshot-102712-940-PM.png\",\"datePublished\":\"2012-10-28T01:21:20+00:00\",\"dateModified\":\"2017-03-27T14:43:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/Snapshot-102712-940-PM.png?fit=491%2C503&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/Snapshot-102712-940-PM.png?fit=491%2C503&ssl=1\",\"width\":\"491\",\"height\":\"503\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2012\\\/10\\\/27\\\/watch-sandy-in-r\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rud.is\\\/b\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Watch &#8220;Sandy&#8221; In R\"}]},{\"@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":"Watch \"Sandy\" In R - 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\/2012\/10\/27\/watch-sandy-in-r\/","og_locale":"en_US","og_type":"article","og_title":"Watch \"Sandy\" In R - rud.is","og_description":"UPDATE: Significantly updated code on github Well, a couple folks asked how to make it more &#8220;centered&#8221; on the hurricane and stop the labels from chopping off, so I modified the previous code a bit to show how to do that. As indicated in the code comments, Google took down the cone KML files. I&#8217;ll [&hellip;]","og_url":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/","og_site_name":"rud.is","article_published_time":"2012-10-28T01:21:20+00:00","article_modified_time":"2017-03-27T14:43:18+00:00","og_image":[{"url":"https:\/\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png","type":"","width":"","height":""}],"author":"hrbrmstr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hrbrmstr","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/#article","isPartOf":{"@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/"},"author":{"name":"hrbrmstr","@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"headline":"Watch &#8220;Sandy&#8221; In R","datePublished":"2012-10-28T01:21:20+00:00","dateModified":"2017-03-27T14:43:18+00:00","mainEntityOfPage":{"@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/"},"wordCount":169,"commentCount":0,"publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"image":{"@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png","articleSection":["R"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/","url":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/","name":"Watch \"Sandy\" In R - rud.is","isPartOf":{"@id":"https:\/\/rud.is\/b\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/#primaryimage"},"image":{"@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png","datePublished":"2012-10-28T01:21:20+00:00","dateModified":"2017-03-27T14:43:18+00:00","breadcrumb":{"@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/#primaryimage","url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png?fit=491%2C503&ssl=1","contentUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2012\/10\/Snapshot-102712-940-PM.png?fit=491%2C503&ssl=1","width":"491","height":"503"},{"@type":"BreadcrumbList","@id":"https:\/\/rud.is\/b\/2012\/10\/27\/watch-sandy-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rud.is\/b\/"},{"@type":"ListItem","position":2,"name":"Watch &#8220;Sandy&#8221; In R"}]},{"@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":"","jetpack_shortlink":"https:\/\/wp.me\/p23idr-s2","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1750,"url":"https:\/\/rud.is\/b\/2012\/10\/28\/watch-sandy-in-r-including-forecast-cone\/","url_meta":{"origin":1738,"position":0},"title":"Watch Sandy in &#8220;R&#8221; (Including Forecast Cone)","author":"hrbrmstr","date":"2012-10-28","format":false,"excerpt":"As indicated in the code comments, Google took down the cone KML files. I'll be changing the code to use the NHC archived cone files later tonight NOTE: There is significantly updated code on github for the Sandy 'R' dataviz. This is a follow-up post to the quickly crafted Watch\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":1761,"url":"https:\/\/rud.is\/b\/2012\/10\/29\/sandy-code-up-on-github\/","url_meta":{"origin":1738,"position":1},"title":"&#8216;Sandy&#8217; Code Up On Github","author":"hrbrmstr","date":"2012-10-29","format":false,"excerpt":"UPDATE: As indicated in the code comments, Google took down the cone KML files. I'll be changing the code to use the NHC archived cone files later tonight I will (most likely) not be littering the blog with any more updates to the 'Sandy' code unless they are really significant.\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":3083,"url":"https:\/\/rud.is\/b\/2014\/10\/07\/plot-me-like-a-hurricane-a-k-a-animating-historical-north-atlantic-basin-tropical-storm-tracks\/","url_meta":{"origin":1738,"position":2},"title":"Plot Me Like a Hurricane (a.k.a. animating historical North Atlantic basin tropical storm tracks)","author":"hrbrmstr","date":"2014-10-07","format":false,"excerpt":"Markus Gessman (@MarkusGesmann) did a beautiful job [Visualising the seasonality of Atlantic windstorms](http:\/\/www.magesblog.com\/2014\/10\/visualising-seasonality-of-atlantic.html) using small multiples, which was inspired by both a [post](http:\/\/freakonometrics.hypotheses.org\/17113) by Arthur Charpentier (@freakonometrics) on using Markov spatial processes to \"generate\" hurricanes\u2014which was [tweaked a bit](http:\/\/robertgrantstats.wordpress.com\/2014\/10\/01\/transparent-hurricane-paths-in-r\/) by Robert Grant (@robertstats)\u2014and [Gaston Sanchez](https:\/\/github.com\/gastonstat)'s [Visualizing Hurricane Trajectories](http:\/\/rpubs.com\/gaston\/hurricanes) RPub. I\u2026","rel":"","context":"In &quot;Data Visualization&quot;","block_context":{"text":"Data Visualization","link":"https:\/\/rud.is\/b\/category\/data-visualization\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12917,"url":"https:\/\/rud.is\/b\/2021\/01\/26\/making-it-easier-to-experiment-with-compiled-swift-code-in-r\/","url_meta":{"origin":1738,"position":3},"title":"Making It Easier To Experiment With Compiled Swift Code In R","author":"hrbrmstr","date":"2021-01-26","format":false,"excerpt":"The past two posts have (lightly) introduced how to use compiled Swift code in R, but they've involved a bunch of \"scary\" command line machinations and incantations. One feature of {Rcpp} I've always ? is the cppFunction() (\"r-lib\" zealots have a similar cpp11::cpp_function()) which lets one experiment with C[++] code\u2026","rel":"","context":"In &quot;macOS&quot;","block_context":{"text":"macOS","link":"https:\/\/rud.is\/b\/category\/macos\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6180,"url":"https:\/\/rud.is\/b\/2017\/08\/25\/unbottling-msg-files-in-r\/","url_meta":{"origin":1738,"position":4},"title":"Unbottling &#8220;.msg&#8221; Files in R","author":"hrbrmstr","date":"2017-08-25","format":false,"excerpt":"There was a discussion on Twitter about the need to read in \".msg\" files using R. The \"MSG\" file format is one of the many binary abominations created by Microsoft to lock folks and users into their platform and tools. Thankfully, they (eventually) provided documentation for the MSG file format\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":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/shutterstock_203013673-copy.jpg?fit=1000%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/shutterstock_203013673-copy.jpg?fit=1000%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/shutterstock_203013673-copy.jpg?fit=1000%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/08\/shutterstock_203013673-copy.jpg?fit=1000%2C667&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":9496,"url":"https:\/\/rud.is\/b\/2018\/04\/08\/dissecting-r-package-utility-belts\/","url_meta":{"origin":1738,"position":5},"title":"Dissecting R Package &#8220;Utility Belts&#8221;","author":"hrbrmstr","date":"2018-04-08","format":false,"excerpt":"Many R package authors (including myself) lump a collection of small, useful functions into some type of utils.R file and usually do not export the functions since they are (generally) designed to work on package internals rather than expose their functionality via the exported package API. Just like Batman's utility\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\/2018\/04\/r-utility-belt-final.png?fit=891%2C375&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/04\/r-utility-belt-final.png?fit=891%2C375&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/04\/r-utility-belt-final.png?fit=891%2C375&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2018\/04\/r-utility-belt-final.png?fit=891%2C375&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/1738","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=1738"}],"version-history":[{"count":0,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/1738\/revisions"}],"wp:attachment":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media?parent=1738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/categories?post=1738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/tags?post=1738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}