Ref: http://www.statmethods.net/advgraphs/ggplot2.html
library(ggplot2)
qplot(iris$Sepal.Length,iris$Sepal.Width)

qplot(iris$Sepal.Length,iris$Sepal.Width, col=iris$Species)

library(ggplot2)
qplot(iris$Sepal.Length,iris$Sepal.Width)
qplot(iris$Sepal.Length,iris$Sepal.Width, col=iris$Species)
No comments:
Post a Comment