I have two outliers I do not want to omit from a plot so I am using gap.boxplot
in the plotrix package. The range is great enough that I made two breaks. The lower range should be 0-400, middle 2050-2150, and upper 4850-5000. I've made a plot I am happy with, but the tics on the y-axis are not displaying correctly.
How can I change the tics so the correct ranges are displayed on the y-axis?
gap.boxplot(data$a ~ data$month,
gap=list(top=c(2150,4850),bottom=c(400,2050))
ytics = seq(0, 5000, by = 50),
axis.labels=T)
zz =
s_id month a
1 jun 0
2 jun 1
3 jun 3
4 jul 28
5 jul 56
6 jul 43
7 jun 0
8 jun 4900
9 jun 8
10 jul 12
11 jul 56
12 jul 92
13 jul 4
14 jul 0
15 jul 0
16 jun 356
17 jun 0
18 jun 49
19 jun 2100
20 jun 0
21 jun 89
data = read.table(text=zz, header = TRUE)