- qplot is the simplest choice if you are dealing with input vectors
- ggplot requires a data.frame as input data structure.
When you want to produce a histogram, qplot needs only the vector of occurrences
#rnorm
x <- rnorm(10)
#ggplot2 package: qplot
qplot(x, geom="histogram")
#ggplot2: using straight ggplot (requires conversion to data.frame)
ggplot(data.frame(x), aes(x)) + geom_histogram()