Tag: R
-
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…