Articles by hrbrmstr

ggplot2で字幕 [Subtitles in ggplot2]

March 12, 2016 | hrbrmstr

Subtitles aren’t always necessary for plots, but I began to use them enough that I whipped up a function for ggplot2 that does a decent job adding a subtitle to a finished plot object. More than a few folks have tried their hand at this in the past and ...
[Read more...]

Some Light Image Processing & Creation With R

March 10, 2016 | hrbrmstr

A friend, we’ll call him Alen put a call out for some function that could take an image and produce a per-row “histogram” along the edge for the number of filled-in points. That requirement eventually scope-creeped to wanting “histograms” on both the edge and bottom. In, essence there was ...
[Read more...]

OS X XQuartz Vulnerability Test Using R

March 7, 2016 | hrbrmstr

It’s usually a good thing when my #rstats and infosec worlds collide. Unfortunately, this time it’s a script that R folk running on OS X can use to see if they are using a version of XQuartz that has a nasty vulnerability in the framework it uses to ... [Read more...]

Primary Plotting

March 7, 2016 | hrbrmstr

My wife tricked me into a partial-weekend project to try to get all the primary/caucus results to-date on a map (the whole us). This is challenging since not all states use counties as boundaries for aggregate results. I’m still piecing together some shapefiles for the primary/caucus summation ... [Read more...]

Capturing wild widgets with webshot

March 4, 2016 | hrbrmstr

NOTE: you won’t need to use this function if you use the development version of knitr Winston Chang released his webshot package to CRAN this past week. The package wraps the immensely useful phantomjs utility and makes it dirt simple to capture whole or partial web pages in R. ... [Read more...]

A Tale of Two Charting Paradigms: Vega-Lite vs R+ggplot2

February 28, 2016 | hrbrmstr

This post comes hot off the heels of the nigh-feature-complete release of vegalite (virtually all the components of Vega-Lite are now implemented and just need real-world user testing). I’ve had a few and seen a few questions about “why Vega-Lite”? I think my previous post gave some good answers ... [Read more...]

Making Faceted Heatmaps with ggplot2

February 14, 2016 | hrbrmstr

We were doing some exploratory data analysis on some attacker data at work and one of the things I was interested is what were “working hours” by country. Now, I don’t put a great deal of faith in the precision of geolocated IP addresses since every geolocation database that ... [Read more...]

Plot the new SVG R logo with ggplot2

February 11, 2016 | hrbrmstr

High resolution and SVG versions of the new R logo are finally available. I converted the SVG to WKT (file here) which means we can use it like we would a shapefile in R. That includes plotting! Here’s a short example of how to read that WKT and plot ...
[Read more...]

Craft httr calls cleverly with curlconverter

February 10, 2016 | hrbrmstr

When you visit a site like the LA Times’ NH Primary Live Results site and wish you had the data that they used to make the tables & visualizations on the site: Sometimes it’s as simple as opening up your browsers “Developer Tools” console and looking for XHR (XML HTTP ...
[Read more...]

Alternate R Markdown Templates

February 4, 2016 | hrbrmstr

The knitr/R markdown system is a great way to organize reports and analyses. However, the built-in ones (that come with RStudio/the rmarkdown package) rely on Bootstrap and also use jQuery. There’s nothing wrong with that, but the generated standalone HTML documents (which are a great way to ... [Read more...]

Cobble XPath Interactively with the xmlview Package

January 13, 2016 | hrbrmstr

(If you don’t know what XML is, you should probably read a primer before reading this post,) When working with data, one inevitably comes across things encoded in XML. I’m in the “anti-XML” camp, but deal with my fair share of XML in “cyber” and help out enough ...
[Read more...]

The Force: Accounted, in R

January 9, 2016 | hrbrmstr

Despite being a cybersecurity professional, it’s pretty easy to social engineer me: https://t.co/R3qVHEMTLo @hrbrmstr is there an R package? ;)— Thorsten G. (@SaThaRiel74) January 8, 2016 I’ll note that @jayjacobs does it all the time to me. I took Thorsten’s tweet as a challenge to ggplot2... [Read more...]

World Map Panel Plots with ggplot2 2.0 & ggalt

December 29, 2015 | hrbrmstr

James Austin (@awhstin) made some #spiffy 4-panel maps with base R graphics but also posited he didn’t use ggplot2 because: …ggplot2 and maps currently do not support world maps at this point, which does not give us a great overall view. That is certainly a box I would not ...
[Read more...]

Update to metricsgraphics 0.9.0 (now on CRAN)

December 21, 2015 | hrbrmstr

It’s been a while since I’ve updated my metricsgraphics package. The hit list for changes includes: Fixes for the new ggplot2 release (metricsgraphics uses the movies data set which is now in ggplot2movies) Updated all javascript libraries to the most recent versions Borrowed the ability to add ... [Read more...]
1 15 16 17 18 19 23

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)