Blog Archives

Color Palettes in R

June 2, 2010
By
Color Palettes in R

The simplest versions of plots use color rather sparingly. For instance, consider this simple bar chart:n=seq(1:12)barplot(n)Not exactly the most colorful thing you've ever seen eh?R provides standard color palettes comprised of vectors containing a s...

Read more »

Source Code Files in R

May 29, 2010
By
Source Code Files in R

R's interactive programming style is similar to what I have seen in other environments (e.g. ruby's irb and Oracle's SQL*Plus, etc). There are a few commands that you need to be aware of to get up and running with developing R programs.To identify yo...

Read more »

Number Formatting

May 11, 2010
By
Number Formatting

I was discussing some subject with my kids - can't recall if it was in the realm of astronomy, computing, or moder economics. In any case, it involved large numbers. I fired up R to do a quick calculation:> 1000000000 / 1000The resulting answer was ...

Read more »

Putting Text in a Margin

May 10, 2010
By
Putting Text in a Margin

I found text and title early on but was initially confounded when trying to add text outside of an actual chart. As it turns out, I needed to understand a bit about R's concept of margins in a chart> par(oma=c(2,2,2,2))> plot(rnorm)> mtext('The label'...

Read more »

String Concatenation in R

May 10, 2010
By
String Concatenation in R

String concatenation is a rather basic function - but my particular programming reflexes did not help me figure out how to do this in R. I tried the + and & operator, and even the || operator to no avail. Also tried concat() function... no dice. ...

Read more »

Initial Post

May 8, 2010
By
Initial Post

As a web application and database developer who has spent most of my time in the world Java, Ruby, Python and SQL, the R language has some unfamiliar functionality.This blog will be comprised of tips and tricks for making charts with the R language.

Read more »