电力化学吧 关注:2贴子:38
  • 2回复贴,共1

hist频数图添加占比分布信息

只看楼主收藏回复

par(las=1,col.main='black',col.lab='blue',bg=gray(0.95)) #fg='gold',
hist(cc6,density=c(10,20),ylim=c(0,45),xlim=c(50,105),angle=c(30,120),label=T,border='gold',breaks=c(50,60,70,80,90,100),freq=T,main=tt0,xlab=ttx,col=rainbow(4),ylab=tty,tck=0.01)
rug(jitter(cc6))
lines(cc6s,col='red',cex=2,lwd=3,type='o',pch=17)
text(cc6s$x,cc6s$y+1.5,pos=4,paste0('人,占比',round(cc6s$y/0.71,1),'%'),col='red')
#图片见目录003-8
box();grid()


IP属地:湖南1楼2022-08-30 20:45回复

    cc6s<-data.frame(x=c(65,75,85,95),y=c(2,25,41,3))
    lines(cc6s,col='red',cex=2,lwd=3,type='o',pch=17)
    text(cc6s$x,cc6s$y+1.5,pos=4,paste('人,占比',round(cc6s$y/0.71,2),'%'),col='red')


    IP属地:湖南2楼2022-08-30 20:50
    回复
      2025-07-20 06:43:19
      广告

      ploygon(density(x),col=4,border=7)
      plot(density(x),col=2,xlab='sr',ylab='密度',main='')
      rug(x,col=9)


      IP属地:湖南3楼2022-09-02 15:21
      回复