Skip to content

grid lines outside plot region in version R1.4.1

2 messages · lutz.thieme@amd.com, Brian Ripley

#
Hello everybody,

if I'm using par(xpd=NA) gridlines will plotted outside the plotting region. This is "new" (and, in my
opinion, unaesthetic) in version 1.4 - compared to version 1.3. Is this a bug or a feature?

Example:
------------------
par(xpd=NA)
plot(1:11)
grid()
------------------
platform sparc-sun-solaris2.6
arch     sparc               
os       solaris2.6          
system   sparc, solaris2.6   
status                       
major    1                   
minor    4.1                 
year     2002                
month    01                  
day      30                  
language R   

Best regards,

Lutz

Lutz Thieme
AMD Saxony Manfacturing GmbH
Product Engineering
phone:	+49 351 277-4269
fax:	+49 351 277-9-4269
email:	lutz.thieme at amd.com


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Thu, 18 Apr 2002 lutz.thieme at amd.com wrote:

            
There are no such versions.  I am not being picky here: see the NEWS for
1.3.1.  It appears this was changed by a bug fix for abline in that
version, so 1.3.0 and 1.3.1 behaved differently.

Try adding xpd=FALSE to the abline calls inside grid().