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

2006-08-20 Thread Anupam Tyagi
I think information can be enhanced by using different scaled graphs next to each other. mfrow() created too much space, there may be no need to again draw the x-axis. It can be very useful to have different scales of the same data presented next to each other, in addition to the main graph. So I

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

2006-08-20 Thread Gabor Grothendieck
Look at oma= and mar= parameters to par for controlling the space when using mfrow=. e.g. opar - par(oma = c(6, 0, 5, 0), mar = c(0, 5.1, 0, 2.1), mfrow = c(2,2)) for(i in 1:4) plot(1:10) par(opar) On 8/20/06, Anupam Tyagi [EMAIL PROTECTED] wrote: I think information can be enhanced by using

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

2006-08-19 Thread Anupam Tyagi
Johannes Hüsing hannes at ruhrau.de writes: The pro's and con's of using scale breaks were discussed by Cleveland (1985) The Elements of Graphing Data (Wadsworth, pp. 85-91, 149). I don't know what Cleveland said about this is the second edition Spencer Graves: but I believe

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

2006-08-19 Thread hadley wickham
This is an interesting visual interpretation issue: it may be possible to shade the y-axis (which his thick like the top bars in Lattice plots), or shade the main graphing area from dark to light (or two shades, for two scales) to give a visual idea about the density or stretch of the

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

2006-08-19 Thread hadley wickham
Spencer Graves: but I believe there are times when scale breaks are appropriate, but the display should make this nonstandard transition very clear; ... in which case you are close to having two graphs sharing an x-axis and therefore saving on ink (yay!). If your main concern is saving

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

2006-08-15 Thread Johannes Hüsing
The pro's and con's of using scale breaks were discussed by Cleveland (1985) The Elements of Graphing Data (Wadsworth, pp. 85-91, 149). I don't know what Cleveland said about this is the second edition Spencer Graves: but I believe there are times when scale breaks are appropriate,

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

2006-08-14 Thread Jim Lemon
Rashmi Mathur wrote: Hello, How do I split a y-axis to plot data on different scales? Eg: 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

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

2006-08-14 Thread Spencer Graves
The pro's and con's of using scale breaks were discussed by Cleveland (1985) The Elements of Graphing Data (Wadsworth, pp. 85-91, 149). I don't know what Cleveland said about this is the second edition of this book, but I believe there are times when scale breaks are appropriate,

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

2006-08-13 Thread Rashmi Mathur
Hello, How do I split a y-axis to plot data on different scales? Eg: 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

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

2006-08-13 Thread hadley wickham
How do I split a y-axis to plot data on different scales? The short answer: you shouldn't. The whole point of plotting the data is so that you can compare them visually on the same scale. As soon as you split the scales you can no longer do this, and you effectively have two separate graphs.

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

2006-08-13 Thread John Kane
--- Rashmi Mathur [EMAIL PROTECTED] wrote: Hello, How do I split a y-axis to plot data on different scales? Eg: 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