Publications by C

Initial Post

08.05.2010

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. Related To leave a comment for the author, please follow the link and comment on their blog: R-...

639 sym 2 img

String Concatenation in R

10.05.2010

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. The answer?> paste(‘this string is concatenated’, ‘to this string’)Not exactl...

1663 sym 2 img

Putting Text in a Margin

10.05.2010

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’,EASTThe first line uses the par command’s oma argument to provide the size of the outer...

941 sym 2 img

Number Formatting

11.05.2010

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 less than clear to the grade school mind:[1] 1e+06I realize of course that this ...

1784 sym 2 img

Source Code Files in R

29.05.2010

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 your current working directory:getwd()This is relevant when you are reading or w...

2126 sym 2 img

Color Palettes in R

02.06.2010

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 series of contiguous colors. It is simple to view color wheels based upon default color palette...

2939 sym 16 img

RODM: An R package for Oracle Data Mining

02.06.2010

The folks at Oracle have announced an R package that provides an interface to the Oracle Data Mining option of their 11g database . See more at this Oracle blog. Related To leave a comment for the author, please follow the link and comment on their blog: R-Chart. R-bloggers.com offers daily e-mail updates about R news and tutoria...

564 sym 2 img

Introductory Statistics with R

03.06.2010

I am in the process of reading several books on R, S or statistics. I can’t say that I have completed any of these – at least to the depth that I would like to… but I have found them helpful up to this point in various ways. I’ll add to these book reviews as I have time to read the books in greater detail. The reason I am writing abou...

390 sym 2 img 1 tbl

GUI chart formatting with playwith

04.06.2010

There are a huge number of plots, annotations and parameters available in R for constructing charts and graphics. While looking through the R Programming wikibook I noticed a reference to a library called playwith. It provides a GUI that allows you to modify a graphs, including titles, lines, arrows, and options normally modified by plot or pa...

4952 sym 6 img

“Programming with Data – a Guide to the S Language” by John Chambers

05.06.2010

Another unashamedly subjective book review – but first a little more about my history as it relates to R…A few years ago, I was doing some systems administration work at an industrial company for whom IT was a cost center. I wanted to illustrate to senior management that the growth of data was significant enough that theexisting hardware wa...

390 sym 2 img 1 tbl