[R-sig-Geo] Legend of map

Komine momadou at yahoo.fr
Fri Apr 25 10:08:05 CEST 2014


Dear all, 

I used this code to plot a map. 

>library(raster) 
>Biomasse<-rasterFromXYZ(tab) 
>PlotBio<-plot(Biomass) 
>PlotBio<-plot(Biomass,col=(topo.colors(100)),legend=TRUE,cex.axis=0.8,adj=1) 
>plot(Biomass,legend.only=TRUE,col=(topo.colors(100)),legend.args=list(text="Biomass(Kg/ha)",side=3,line=2,cex=0.8))
 
However I have both problems. 

1-The title of legend overflows on the map, so I want that the title of the
legend moves to right. For this I used “adj=1”, but the problem is not
resolved.  
 2-I want also to reduce the size of the labels of legend (graduation). I
used “cex.axis” but the size don’t change.
 
Thank you for your assistance 
Komine 




--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Legend-of-map-tp7586282.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list