[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-geo
Subject:    Re: [R-sig-Geo] plotRGB and graphical parameters
From:       Gareth Davies <grothered () gmail ! com>
Date:       2013-03-21 1:48:30
Message-ID: 514A66EE.6080600 () gmail ! com
[Download RAW message or body]

Hi Hannah,
One work-around is to avoid plotting the axes at first, and then add 
them later.
Because plotRGB takes up the margins of the graphics device, you have to 
explicitly add in margins to get this to work

Example:

###
library(raster)
b <- brick(system.file("external/rlogo.grd", package="raster"))
par(oma=c(3,3,3,3)) # Add margins
plotRGB(b, 3, 2, 1,axes=F,main="test")
axis(side=1,cex.axis=2)
axis(side=2,las=0,cex.axis=2)
###

In my experience, forcing the axis parameters in the axis function will 
work.


Cheers,
G.

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic