[R] split a y-axis to show data on different scales

From: Rashmi Mathur <rashmim_at_sfu.ca>
Date: Mon 14 Aug 2006 - 04:48:03 EST


How do I split a y-axis to plot data on different scales?


x <- 1:10
y <- c(-0.01,0.79,0.74,0.55,-0.67,0.32,-0.47,-0.05,723,759) plot(x,y)

I'd like to show these data on the same plot, but the way it's written, all contrast in the first 8 data points is lost. Can R split a y-axis for me?


Rashmi Mathur
Master's Candidate
Fisheries Science and Management Research Group School of Resource and Environmental Management (REM) Simon Fraser University
Burnaby, BC

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon Aug 14 05:56:59 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 14 Aug 2006 - 20:22:18 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.