Recreate minitab normal probability plot

前端 未结 4 1532
小鲜肉
小鲜肉 2021-02-06 12:30

I am trying to recreate the following plot with R. Minitab describes this as a normal probability plot.

\"alt

4条回答
  •  耶瑟儿~
    2021-02-06 12:53

    Perhaps this will be something you can build on. By default, stat_smooth() uses level=0.95.

    df <- data.frame(sort(x), ppoints(x))
    colnames(df) <- c("x","y")
    
    ggplot(df, aes(x,y)) + 
    geom_point() + 
    stat_smooth() + 
    scale_y_continuous(limits=c(0,1),breaks=seq(from=0.05,to=1,by=0.05), formatter="percent")
    

提交回复
热议问题