1 First impression of base, lattice and ggplot2 graphs

require(lattice)
require(ggplot2)
hist(iris$Sepal.Length) # Base

histogram(~Sepal.Length|Species, iris, layout=c(3,1)) # Lattice

ggplot(iris, aes(x=Sepal.Length, fill=Species)) + geom_histogram(bins=8)  # ggplot2

2 Quick plots with qplot()

2.1 Histogram and Density plot

qplot(Sepal.Length, geom="histogram", data = iris)  # histogram, default bins=30

qplot(Sepal.Length, data = iris, fill = Species, bins=8)  # options: fill, bins or binwidth

qplot(Sepal.Length, data = iris, facets = .~Species, binwidth = 0.5) # options: facets