R graphics cook book winston chang page 12 gives the syntax given below that does not work
library(ggplot2)
qplot(BOD$Time, BOD$demand, geom="bar", stat="identity")
# Convert the x variable to a factor, so that it is treated as discrete
qplot(factor(BOD$Time), BOD$demand, geom="bar", stat="identity")
Error:
Error: stat_count() can only have an x or y aesthetic.
Run rlang::last_error() to see where the error occurred.
In addition: Warning message:
stat is deprecated
I know that ggplot has geom_bar with stat=identity, just checking if qplot has as i dont see in the documentation