coding beacon

[programming & visualization]

Tag Archives: resources

RRRR: Relevant R-Related References

you can see this & more by running “demo(chartSeries, package = “quantmod”, ask = TRUE)” w/o quotes
(install.packages(“quantmod”) if you haven’t got that package)

Why use R

Cons (when Matlab / Scilab are better): (and even then, I would use non-R tools for prototyping only)

Start here:


RStudio: (++installs in one simple step, ++RMarkdown notebooks, ++actively developed, ++no java dependency, –a bit more rigid IDE than Eclipse)

[1] Get R:
[2] Get RStudio:

Update: I switched from Eclipse to RStudio since I posted this.

Eclipse + StatET: (++extremely flexible IDE, –java dependency, –long first set-up time 20-min-to-1-hour, –one-person-project, –few updates)

[1] Get R (same link as [1] above):
[2] Get rj package from within R command line interface:
[3] (Eclipse: most flexible IDE, version recommended for R users: “Eclipse IDE for Java Developers”)
[4] (StatET: Eclipse R plugin, install within R!)
[5] Set up “Run Configuration” as described

The R Commander:

[1] This is worth having a look at if you need a simple yet powerful GUI:
[2] Get it here:

Running R demos (many packages have them):

Run the following command after installing R:
demo(graphics, package = “graphics”, ask = TRUE)
To see all available demos, run
demo(package = .packages(all.available = TRUE))

Using R / Quick Intro(s) to R:

On colors / graphical parameters


Getting Around Eclipse StatET

Opening Multiple R Graphics Panes:

Then you need to know the following functions to choose which window (device) to use to plot your graphics. Only one device is the active device. This is the device in which all graphics operations occur. Most of the following are self explanatory (or use the “?command_name” to get help).

dev.list() = dev.cur())
dev.prev(which = dev.cur())  #shuts down the specified (by default the current) = dev.cur())
dev.set(which =  #makes the specified device the active device #shuts down all open graphics devices.

Graph Generation Via Automated StatET’s Support of GGPlot2:
Menu: [ R ] -> [ New Graph (‘ggplot2’)” ]
StatET automatically generates appropriate R code based on the following forms.

R Tips and Tricks

Tip: If R is not your first programming language, a very fast way of getting to know functions of ANY package is just typing a name of a function and running it. The console will display the code for that function.

Organizing R Source Code:

How to include (source) R script in other scripts:

Google’s R Style Guide:

Writing R Extensions:

Dirty Tricks (book):

Sourcing files using a relative path:

R References & Resources

Stackoverflow covers most (if not all the topics, incl. references to other sites):

must-read intro:

important excerpt from the intro:

this is huge:

R-inside community:

Using R for Time Series Analysis:

Robust workflow for replicability and reliability with Eclipse + StatET

Interactive graphics
 (includes some of the above links)

R-Related Blogs (StatET is better for working with Shiny)