tags:

views:

381

answers:

2

Suppose I have the following

y <- rnorm(10)
b <- as.factor(sample(1:4,10,replace=T))
qplot(1:10, y, shape=b)

How do I change the shapes that are used using ggplot2?

+2  A: 
Vince
+6  A: 
Harlan
This is a much better way of doing it, as it retains the legend and works with ggplot, not base graphics. I learn more about ggplot here everyday, thanks!
Vince