Re: [R] I want axes that cross

2009-02-16 Thread Mark Difford
Hi Paul, Have you ever seen a drawing of the regions of an R plot with the terminology that is used for parts? From what I can remember, several documents on CRAN cover this. The one that springs to mind is Alzola Harrell's An Introduction to S and the Hmisc and Design Libraries,” which you

Re: [R] I want axes that cross

2009-02-16 Thread Marc Schwartz
I would also add: 1. Chapter 12 in An Introduction to R 2. Chapter 3 in Paul's R Graphics book: http://www.stat.auckland.ac.nz/~paul/RGraphics/rgraphics.html Note that the figures and code used for the graphics in the above chapter are available here:

Re: [R] I want axes that cross

2009-02-15 Thread Paul Johnson
On Fri, Feb 13, 2009 at 3:14 PM, Marc Schwartz marc_schwa...@comcast.net wrote: on 02/13/2009 02:19 PM Paul Johnson wrote: On Fri, Feb 13, 2009 at 1:51 PM, Marc Schwartz OK, so given all of the above, something like the following should work: set.seed(1233240) x - rnorm(100) z - gl(2,50)

[R] I want axes that cross

2009-02-13 Thread Paul Johnson
Hello, everybody. A student asked me a howto question I can't answer. We want the length of the drawn axes to fill the full width and height of the plot, like so: | | * | * | * ---|- However, when we use plot with axes=F and then use the axis

Re: [R] I want axes that cross

2009-02-13 Thread Daniel Moreira
...@r-project.org 02/13/2009 02:25 PM To R-help r-h...@stat.math.ethz.ch cc Subject [R] I want axes that cross Hello, everybody. A student asked me a howto question I can't answer. We want the length of the drawn axes to fill the full width and height of the plot, like so

Re: [R] I want axes that cross

2009-02-13 Thread Marc Schwartz
on 02/13/2009 01:25 PM Paul Johnson wrote: Hello, everybody. A student asked me a howto question I can't answer. We want the length of the drawn axes to fill the full width and height of the plot, like so: | | * | * | * ---|-

Re: [R] I want axes that cross

2009-02-13 Thread Paul Johnson
On Fri, Feb 13, 2009 at 1:51 PM, Marc Schwartz marc_schwa...@comcast.net wrote: on 02/13/2009 01:25 PM Paul Johnson wrote: Hello, everybody. A student asked me a howto question I can't answer. We want the length of the drawn axes to fill the full width and height of the plot, like so:

Re: [R] I want axes that cross

2009-02-13 Thread Paul Johnson
On Fri, Feb 13, 2009 at 1:42 PM, Daniel Moreira daniel.more...@duke.edu wrote: Try defining the argument 'pos' in the axis command-line, like: x - rnorm(100) z - gl(2,50) y - rnorm(100, mean= 1.8*as.numeric(z)) plot(x,y,type=n, axes=F) points(x,y, pch=$,cex=0.7, col=z) axis(1, col=green,

Re: [R] I want axes that cross

2009-02-13 Thread Charles C. Berry
On Fri, 13 Feb 2009, Paul Johnson wrote: On Fri, Feb 13, 2009 at 1:51 PM, Marc Schwartz marc_schwa...@comcast.net wrote: on 02/13/2009 01:25 PM Paul Johnson wrote: Hello, everybody. A student asked me a howto question I can't answer. We want the length of the drawn axes to fill the full

Re: [R] I want axes that cross

2009-02-13 Thread David Winsemius
I think you ought to worry a bit about who might be laughing at whom. You are asking for a plot with rather unnatural behavior and potentially very misleading to the audience. Here it is, but you bear full responsibility for any consequences: plot(x,y,type=n, axes=F, xlim=c(min(x)-1,

Re: [R] I want axes that cross

2009-02-13 Thread Daniel Moreira
To Paul Johnson pauljoh...@gmail.com cc Daniel Moreira daniel.more...@duke.edu, R-help r-h...@stat.math.ethz.ch Subject Re: [R] I want axes that cross I think you ought to worry a bit about who might be laughing at whom. You are asking for a plot with rather unnatural behavior

Re: [R] I want axes that cross

2009-02-13 Thread Marc Schwartz
on 02/13/2009 02:19 PM Paul Johnson wrote: On Fri, Feb 13, 2009 at 1:51 PM, Marc Schwartz marc_schwa...@comcast.net wrote: on 02/13/2009 01:25 PM Paul Johnson wrote: Hello, everybody. A student asked me a howto question I can't answer. We want the length of the drawn axes to fill the full