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?
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
– vaqaar dar Feb 27 '13 at 18:57