Tag: R-project
-
Sorting out Sweave in Eclipse/StatET
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 following is my experience getting it working with Eclipse 3.5, StatET 0.9.1.b201011060900E35sw, Sweave Add-on for…
-
Altering Eclipse user name
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 the eclipse.ini file. Specifically, add the line -Duser.name = Your full name at the end of…
-
Modifying basic plots in R
Below is a walk-through of some of the basics of customizing plots 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 # sign is considered comments by R,…
-
Eclipse and StatET – a working environment for R
How to use Eclipse and StatET to create a handy-dandy development environment for R. Using the Eclipse environment provides a nice colored-syntax script editor, an R console, and an object browser to let you peruse the variables you’ve put into memory. If you’re a Matlab or Systat refugee, this arrangement may be the closest you…
-
Calculating LT50 (median lethal temperature, aka LD50) quickly in R
Say you’ve got a bunch of survival/mortality data from an experiment. Maybe you exposed batches of snails to various high temperatures for a few hours, and recorded the number alive and dead in each batch at the end. Now you’d like to report the median lethal temperature (or perhaps a lethal dosage if you were…