Remove outliers fully from multiple boxplots made with ggplot2 in R and display the boxplots in expanded format

后端 未结 5 1610
孤街浪徒
孤街浪徒 2020-12-08 05:28

I have some data here [in a .txt file] which I read into a data frame df,

df <- read.table(\"data.txt\", header=T,sep=\"\\t\")

I remove

5条回答
  •  佛祖请我去吃肉
    2020-12-08 06:15

    ggplot(df_mlt, aes(x = ID1, y = value)) + 
      geom_boxplot(outlier.size = NA) + 
      coord_cartesian(ylim = range(boxplot(df_mlt$value, plot=FALSE)$stats)*c(.9, 1.1))
    

提交回复
热议问题