1975 search results for "ggplot"

Style your R charts like the Economist, Tableau … or XKCD

October 5, 2012
By
Style your R charts like the Economist, Tableau … or XKCD

As we noted last month, the new Themes feature in ggplot2 helps you customize the design of R charts to your liking. Now, R user Jeffrey Arnold has built on this feature to create standardized themes to make R graphics looks like those from major publications and other software systems. You can use his ggthemes package to make your...

Read more »

DIY ZeroAccess GeoIP Plots

October 5, 2012
By
DIY ZeroAccess GeoIP Plots

Since F-Secure was #spiffy enough to provide us with GeoIP data for mapping the scope of the ZeroAccess botnet, I thought that some aspiring infosec data scientists might want to see how to use something besides Google Maps & Google Earth to view the data. If you look at the CSV file, it’s formatted as

Read more »

its the Gramma an punctuashun wot its’ about, Rgiht?

October 4, 2012
By
its the Gramma an punctuashun wot its’ about, Rgiht?

This is another of those confluence style posts, where a handful of things I’ve read in quick succession seem to phase lock in my mind: (brought to mind in part via @downes a week or so ago: How to Synch 32 Metronomes) The first was a post by Alan Levine on Making Text Work, which

Read more »

Presidential Debates with qdap-beta

October 4, 2012
By
Presidential Debates with qdap-beta

qdap brief intro For the past year I’ve been working on a package (qdap) to assist my field in quantitative discourse analysis; basically looking at patterns in language. It’s still a ways from being finished and lacks documentation (roxygen2 is … Continue reading →

Read more »

Parse pdf files with R (on a Mac)

October 4, 2012
By

Inspired by this blog post from theBioBucket, I created a script to parse all pdf files in a directory. Due to its reliance on the Terminal, it’s Mac specific, but modifications for other systems shouldn’t be too hard (as a start for Windows, see BioBucket’s script). First, you have to install the command line tool

Read more »

Transforming a color scale

October 3, 2012
By
Transforming a color scale

In developing plots, I often use color (or “colour” in ggplot2 parlance) to reflect values of a third, non-X/Y, variable. Depending on the distribution of this Z variable, however, the effective color range can be narrow, making it difficul...

Read more »

Clegg vs Pleb: An XKCD-esque chart

October 2, 2012
By
Clegg vs Pleb: An XKCD-esque chart

I saw an interesting “challenge” on StackOverflow last night to create an XKCD style chart in R. A couple of hours later & going in a very similar direction to a couple of the answers on SO, I got to something that looked pretty good, using the sin and cos curves for simple and reproducible … Continue reading...

Read more »

A replacement for theme_blank()

October 2, 2012
By
A replacement for theme_blank()

ggplot2 has just hit 0.9.2, and with the change comes a new theme system. Previous versions of ggplot2 offered a theme_blank(), which was a stripped-down, essentially blank plotting canvas, but it is now deprecated. github user jrnold has produced a s...

Read more »

Where in the world is R and RStudio

October 1, 2012
By
Where in the world is R and RStudio

Using the web logs collected when users download RStudio, we’ve prepared the following two maps showing where RStudio is being used, over the whole globe and just within the continental USA. Obviously this data is somewhat biased, as it reflects the number of downloads of RStudio, rather than the number of users of R (which

Read more »

An R-based Research Notebook – Test

September 30, 2012
By

The following are from Tom Torsney-Weir’s blog (here’s the repo). Simple MathJax and R example A more complex example with caching <!--begin.rcode test2,cache=TRUE x.vals <- runif(10) y.vals Another plotting example using ggplot <!--begin.rcode test3,cache=TRUE, message=FALSE library(ggplot2) c Example using googleVis <!--begin.rcode test4,cache=TRUE, message=FALSE, results='asis' suppressPackageStartupMessages(library(googleVis)) ## Table with embedded links PopTable

Read more »