colors

R Graphics: Plotting in Color with qplot Part 2

January 13th, 2015 by

by David Lillis, Ph.D.

In the last lesson, we saw how to use qplot to map symbol colour to a categorical variable. Now we see how to control symbol colours and create legend titles.
(more…)


R Graphics: Plotting in Color with qplot

January 12th, 2015 by

by David Lillis, Ph.D.

In this lesson, let’s see how to use qplot to map symbol colour to a categorical variable.

Copy in the following data set (a medical data set relating to patients in a randomised controlled trial):

(more…)