I have following dataframe:
a ID a.1 b.1 a.2 b.2 1 1 40.00 100.00 NA 88.89 2 2 100.00 100.00 100 100.00 3 3 5
If you'd rather keep the number of quantiles, another option is to just add a little bit of jitter, e.g.
breaks = c(-Inf,quantile(a[,paste(i,1,sep=".")], na.rm=T),Inf) breaks = breaks + seq_along(breaks) * .Machine$double.eps