library(ggplot2) # Basic histogram ggplot(df, aes(x=weight)) + geom_histogram() ... Add mean line p+ geom_vline(aes(xintercept=mean(weight)), color="blue", ...
確定! 回上一頁