1 计算log10 df2$log10 = log10(df2$num) 2 直方图 ggplot(df2,aes(x=log10))+geom_histogram(fill="lightblue",color="black")+theme_classic() 也有效果 参考: R语言-数据转化(log和根号)