I want to plot with ggplot the frequency of values from a numeric vector. With plot() is quite straight forward but I can\'t get the same resul
plot()
Please look at the help page ?geom_histogram. From the first example you may find that this works.
?geom_histogram
qplot(as.factor(dice_results), geom="histogram")
Also look at ?ggplot. You will find that the data has to be a data.frame
?ggplot
data.frame