how to make box plot with R with interrupted Y axis

This is a sample of my data. It's a tab delimited file with a header. X1 X2 X3 X4 1.3 0.5 0.1 1 NA 0.3 0.4 3 NA 0.2 0.3 0.3 NA 0.1 3 0.2 NA 27 5 56 NA NA 10 0.01 I would like to get a `boxplot` from this data. The problem is that I want to *interrupt* the plot at `10` and `50` on `Y-axis`. I want a *bigger plot size before 10* and a *smaller plot size after* that. I don't know how to plot with 2 gaps in `Y-axis`. I tried with `axis.break` and `gap.boxplot` but as my programming skills with R are very limited so I am unable to use both of these methods properly. I'd be grateful for any hints to accomplish this?
X1 X2 X3 X4
1.344827586 0.5 0.1 1
NA 0.3 0.4 3
NA 0.2 0.3 0.3
NA 0.1 3 0.2
NA 27 5 56
NA NA 10 0.01

以上就是how to make box plot with R with interrupted Y axis的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏