Publications by Christopher Gandrud

Slidify: Things are coming together fast

04.06.2012

Tools for using R/RStudio as a one-stop shop for research and presentation have been coming out quickly. I think this one has a good shot of being included in future releases of RStudio: The other day I ran across a new R package called slidify by Ramnath Vaidyanathan. In previous posts I had been messing around with Pandoc and deck.rb to turn kn...

1945 sym R (100 sym/2 pcs) 2 img

Data on GitHub: The easy way to make your data available

13.06.2012

GitHub is designed for collaborating on coding projects. Nonetheless, it is also a potentially great resource for researchers to make their data publicly available. Specifically you can use it to:store data in the cloud for future use (for free),track changes,make data publicly available for replication,create a website to nicely present key info...

5447 sym R (443 sym/4 pcs) 4 img

Update to Data on Github Post: Solution to an RCurl problem

14.06.2012

A reader of my most recent post tried the R code I had written to download the data set of electoral disproportionality from the GitHub repository. However, it didn’t work for them. After entering disproportionality.data <- getURL(url) they got the error message: Error in function (type, msg, asError = TRUE) : SSL certificate problem, verify ...

1579 sym R (493 sym/2 pcs) 2 img

Sourcing Code from GitHub

10.07.2012

In previous posts I described how to input data stored on GitHub directly into R. You can do the same thing with source code stored on GitHub. Hadley Wickham has actually made the whole process easier by combining the getURL, textConnection, and source commands into one function: source_url. This is in his devtools package. Imagine we have a .R ...

1142 sym R (282 sym/2 pcs) 2 img

ggplot2 Self-deprecation

24.08.2012

I’ve been in China working for a few weeks (where this blog is (oddly) blocked). So, I haven’t been able to post much over the summer. To kick things off for the new (academic) year, I thought I might just re-post something good I saw on the Book of Saturday blog. I think it was posted via Kieran Healy‘s blog. Regardless of the origin, it�...

830 sym 2 img

Graphically Comparing Confidence Intervals From Different Models

05.09.2012

Related To leave a comment for the author, please follow the link and comment on their blog: Christopher Gandrud (간드루드 크리스토파). R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job. Want to share your ...

415 sym

Create Beamer/knitr Lecture Slideshow with Bash, Explain the Script with knitr

17.09.2012

Setting up a beamer slideshow is tedious. Creating new slideshows with the same header/footer/style files every week for your course lectures is very very tedious. To solve this problem I created a simple bash shell script. When you run the script in your terminal it asks whether you want to create a “Lecture” or “Seminar” and what numb...

1472 sym

Federal Register API/R Package Ideas?

21.09.2012

The other day Critical Juncture put up an API for the Federal Register. I thought it would be great if there was a package that could use this API to download data directly into R (much like the excellent WDI package). This would make it easier to analyse things like: the frequency of regulations issued on a particular issue over a given period o...

1287 sym

Graphing Non-Proportional Hazards in R

03.10.2012

Related To leave a comment for the author, please follow the link and comment on their blog: Christopher Gandrud (간드루드 크리스토파). R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job. Want to share your ...

415 sym

Timeline Maps with googleVis & Twitter Bootstrap Carousel (& updated Slidify)

14.11.2012

I’ve wanted to create timeline maps with interactive googleVis Geomaps for a while. These would be a nice way to quickly show the spatial distribution of some data over time. It turns out that it’s pretty easy to do with a plugin for Twitter Bootstrap called Carousel. Carousel is probably intended for regular picture slide shows. But becaus...

1885 sym