Articles by Luke Miller

Plotting stuff on an image

March 11, 2012 | Luke Miller

Recently, I needed to figure out how many extension cords I was going to need to buy in order to reach parts of my field site. Wandering around in the field with a surveyor's tape was an option, but so was plotting distances on an aerial image I had of... [Read more...]

Eclipse and StatET 2.0 Install For Running R

January 11, 2012 | Luke Miller

The Eclipse IDE with StatET plugin, developed by Stephen Wahlbrink, is one of the more (maybe the most) full-featured options for running R. I’ve written about this combination before (previous post), but the highlights include a script editor with syntax highlighting, code completion, an integrated graphics window, an advanced ... [Read more...]

A simple ggplot2 scatterplot revisited

July 7, 2011 | Luke Miller

Rick Wicklin contacted me with a helpful suggestion for improving the data presentation method outlined in my  previous post on using ggplot2 to visualize some data. In the previous post I had plotted up a highly correlated set of points, showing the correspondence between maximum daily body temperatures of model ... [Read more...]

A simple ggplot2 scatterplot

June 29, 2011 | Luke Miller

Here’s a bit of code used to produce one of the figures in my recent paper dealing with modeling rocky intertidal snail body temperatures. This was my first foray into ggplot2, and it only involved a few hours of head-scratching. The plot is a co... [Read more...]

Converting MATLAB and R date and time values

February 20, 2011 | Luke Miller

For some unknown reason, MATLAB codes its date/time values as the number of elapsed days starting from January 1 in the year 0000. R uses the equally arbitrary, but much more widespread POSIX/Unix epoch as a reference for time keeping, so that R’... [Read more...]

Accessing NOAA tide data with R

February 18, 2011 | Luke Miller

Here's some R code that can be used to download archived tide height data from NOAA's CO-OPS OPeNDAP server. The code makes use of RCurl to send a URL query to the server, and then splits apart the resulting data into a data frame. [Read more...]

A lightweight object browser for R

January 15, 2011 | Luke Miller

Get access to a simple object browser in R so that you can see what variables, data frames, model objects and other junk you have in memory currently. If you don't want to install a full-fledged integrated development environment, this option may be fo... [Read more...]

Book Review: R in a Nutshell

December 29, 2010 | Luke Miller

A brief review of R in a Nutshell by Joseph Adler. This book continues to serve as a useful reference that sits on my desk next to my computer, waiting to tell me the name of that command I've just forgotten. [Read more...]

Sorting out Sweave in Eclipse/StatET

November 29, 2010 | Luke Miller

Using Sweave to produce pretty-looking documentation for R is awfully handy. It takes a little tweaking to get set up in Eclipse and StatET though. I followed the information in Jeromy Anglim’s webpage to originally get Sweave set up. The followi... [Read more...]

Altering Eclipse user name

November 29, 2010 | Luke Miller

Using StatET’s code generation templates is handy, but the standard Eclipse variable for ${user} just inserts the currently logged-in user’s account name. If you want a different name to appear when ${user} is called, one method is to alter... [Read more...]

Modifying basic plots in R

May 4, 2010 | Luke Miller

Below is a walk-through of some of the basics of customizing plot in R. These are all based on the graphics package that comes in the base installation of R. Let’s start by making a basic plot in R. In the code snippets below, green text behind a... [Read more...]
1 2 3

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)