I was looking for a method for setting gaps in a chart without using the scale_y _... function (breaks = c (x1, x2)). The problem is this: I want some boxes.
require(ggplot2) a <- rnorm(10, 0, 5) a <- as.data.frame(a); colnames(a) <- "test" scale_y_continous() cuts of my data points and changes the boxplot! ggplot(data=a, mapping=aes(y=test, x=rep(1,10))) + geom_boxplot() + scale_y_continuous(limits=c(-1,1), breaks=c(-1,0,1))
Thank you for your help!
source share