Quick start with R: More on regression (Part 27)

In my last blog we created two variables and used the lm() command to perform a least squares regression on them, treating one of them as the dependent variable and the other as the independent variable. Here they are again. height = c(176, 154, 138,…

Quick start with R: Using qplot() function (Part 23)

In Part 23, let’s see how to use qplot to create a simple scatterplot. The qplot (quick plot) system is a subset of the ggplot2 (grammar of graphics) package which you can use to create nice graphs. It is great for creating graphs of categorical…

Quick start with R: Mathematical expressions for graphs (Part 22)

In Blog 22, let’s see how to create mathematical expressions for your graph. Mathematical expressions on graphs are made possible through expression(paste()) and substitute(). If you need mathematical expressions as axis labels, switch off the default axes and include Greek symbols by writing them out…

1 2 3 4