Hello,
I read that we can use the qplot() and the ggplot() functions to get the same plots in R.
For example->
library(ggplot2)
ggplot(diamonds, aes(clarity,fill=cut)) +geom_bar()
qplot(clarity,fill=cut,data=diamonds,geom=“bar”)
Both of the above commands give the exact same plot->
What exactly is the difference between these functions?
Thanks.