I am trying to make a plot with grouped barplots and a cut y axis. However I don't seem to be able to get both. Using this data:
d = t(matrix( c(7,3,2,3,2,2,852,268,128,150,
127,74,5140,1681,860,963,866,
470,26419,8795,4521,5375,4514,2487),
nrow=6, ncol=4 ))
colnames(d)=c("A", "B", "C", "D", "E", "F")
I can get the grouped barplots like:
barplot( d, beside = TRUE)
I can then get the cut y-axis using:
# install.packages('plotrix', dependencies = TRUE)
require(plotrix)
gap.barplot( as.matrix(d),
beside = TRUE,
gap=c(9600,23400),
ytics=c(0,3000,6000,9000,24000,25200,26400) )
However, then I loose the grouping and the A, B, C... labeling. How can I get both?