Just one question about r. as we know ,in the base R, for example, in hist function, we conduct following calculation:
x=rnorm(500,90,3)
a<-hist(x)
b<-density(x)
then we can find details by a$ or b$ for some calculation details. But in ggplot2, for example, when we use stat_density, stat_density2d etc. the calculation is also done in the back. how to cite these details ? if use str(p) (p is the ggplot object), we can only get some mapping etc. information.
So, how to get calculation details in a ggplot way? thanks.