[R] Semicolons (was: clip to keep coordinate system?)

From: Jan T. Kim <jtk_at_cmp.uea.ac.uk>
Date: Mon 15 Aug 2005 - 21:17:18 EST

On Tue, Aug 09, 2005 at 07:49:36AM -0700, Thomas Lumley wrote:
> On Tue, 9 Aug 2005 ivo_welch-rstat8303@mailblocks.com wrote:
>
> >
> > dear R wizards:
> >
> > plot( 1, 1, ylim=(2,10), xlim=(2,10), type="n");
> > rect( -1, -1, 12, 12, col=gray(0.99) );
> >
> > unfortunately wipes out the border axes around the plot. how do I keep
> > this?
>
> I think you meant
> plot( 1, 1, ylim=c(2,10), xlim=c(2,10), type="n")
> rect( -1, -1, 12, 12, col=gray(0.99) )
> Your code has two syntax errors and two spurious semicolons.

What's wrong with the semicolons? Technically, they're not necessary, but they definitely improve readability without doing any harm.

Best regards, Jan

-- 
 +- Jan T. Kim -------------------------------------------------------+
 |    *NEW*    email: jtk@cmp.uea.ac.uk                               |
 |    *NEW*    WWW:   http://www.cmp.uea.ac.uk/people/jtk             |
 *-----=<  hierarchical systems are for files, not for humans  >=-----*

______________________________________________
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
Received on Mon Aug 15 21:23:38 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:19:55 EST