Dear R-Geo folks, 

I am trying to plot a map on one window, using gmap() and plot() functions, but it results in two windows (one empty graph and one with the map). 

For exemple , if I try: 
> g <- gmap('Corse, France', type = "satellite") 
> plot(g) 

two windows open, the second containing the map from Corsica. This is problematic when I try to show multiple maps on a simgle window (using layout function for exemple) 


The only solution I found for the moment is to use this trick: 
> g2 <- gmap('Corse, France', type = "satellite", rgb = TRUE) 
> plotRGB(g2) 

which results only in one window, with the map. 

Do someone have any idea why this occurs? 

Thanks, 
Anne 




__________________________________________________ 
ANNE RELUN , DVM, PhD 

Animal and Integrated Risk Management Research Unit (AGIRs) 

CIRAD, ES 
TA C-22 / E - Campus international de Baillarguet 
34398 Montpellier Cedex 5, France 


anne.relun@cirad.fr 
http://agents.cirad.fr/index.php/Anne+RELUN 
http://ur-agirs.cirad.fr/ 

Phone: +33 (0)4 67 59 38 68 



	[[alternative HTML version deleted]]

