Articles by Travis Hinkelman

Shiny = Happy People

January 11, 2013 | Travis Hinkelman

The people behind the wonderful RStudio, which I gushed about in a previous post, have developed a new package, Shiny, that makes it easy to develop interactive web applications with R. Shiny is not the first package to facilitate building web apps with R (see here for comparison of Shiny ... [Read more...]

Good programming practices in R

September 22, 2012 | Travis Hinkelman

I write sloppy R scripts. It is a byproduct of working with a high-level language that allows you to quickly write functional code on the fly (see this post for a nice description of the problem in Python code) and the result of my limited formal training in computer programming. ... [Read more...]

RStudio is RStupendous

September 3, 2012 | Travis Hinkelman

I am a sucker for beautiful applications (like the ggplot2 web tool mentioned here). The latest R-related application to catch my eye is RStudio. RStudio™ is a free and open source integrated development environment (IDE) for R. You can run it on your desktop (Windows, Mac, or Linux) or even ... [Read more...]

Late to the ggplot2 party

August 29, 2012 | Travis Hinkelman

I have resisted learning the popular R graphics package, ggplot2. I dismissed ggplot2 as primarily useful for exploratory graphics and rationalized my avoidance of ggplot2 by assuming that it would require just as many (or more) lines of code as the R base package to whip the default plots into ... [Read more...]

Using paste( ) to read and write multiple files in R

August 19, 2012 | Travis Hinkelman

This post is a quick tip on how to use the paste( ) function to read and write multiple files. First, let’s create some data. [crayon-533f259401760359948418/] The next step is not necessary, but makes the subsequent code more readable. [crayon-533f259401770436644635/] The following example is silly because you would ... [Read more...]

Transformation of axes in R

August 4, 2012 | Travis Hinkelman

As a general rule, you should not transform your data to try to fit a linear model. But proportions can be tricky. If the proportion data do not arise from a binomial process (e.g., proportion of a leaf consumed by a caterpillar), then transformation is still the best option. ... [Read more...]

Spacing of multi-panel figures in R

August 2, 2012 | Travis Hinkelman

In a previous post, I showed how to keep text and symbols at the same size across figures that have different numbers of panels. The figures in that post were ugly because they used the default panel spacing associated with the mfrow argument of the par( ) function. Below I will ... [Read more...]

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)