Some new R stuff

Because I have some plans for an R course in Moodle, and also because I need to do some plots, I looked around in the web to see if there was something new. I found quite a lot, at least new to me. One is the package ggplot2 that may be easier to use than lattice and produces graphs with a different look.

The author is Had Wickman.

An example:

# load package
library(ggplot2)
# generate some artificial data
x=1:100
y2=x^2/100+rnorm(100)*5
# create a plot
qplot(x,y2,geom=c("smooth","point"))
qplot(x,y2,geom=c("smooth","point"))

Here are some links:

ggplot2 the home page for the package with links to videos, slides, etc. The package itself is in CRAN.

The author‘s PhD thesis

Some slides.

He has also written a book on ggplot2.

He has written other interesting packages but I’ll write about them later.

2 Replies to “Some new R stuff”

  1. I bought and read the book. I will bring it to Viikki in August. The book is good for learning how to use the package, but not so good as reference as the index is a bit incomplete.

Leave a Reply