Skip to content
Prev 22892 / 398503 Next

y-axis with "break"

Nicolas Schneider wrote:
Not really, I think. What you can do, e.g., is that ugly trick along the
following lines:

 barplot(c(-50, 50, 450 - 300, 50), ylim=c(-150, 200), yaxt="n")
 axis(2, seq(-150, 200, 50), labels = c(seq(-150, 100, 50), 450, 500))
 lines(rep(par("usr")[1], 2), c(100, 150), col="white", lty="dashed")

Better solutions are welcome!

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._