[R-sig-Geo] adding a scale

Gilles Benjamin Leduc gbl1 at hi.is
Fri Apr 24 14:10:19 CEST 2015


Hi again, 

So, I use the plot() function. 
I read a shapefile, that I convert in GPS coordinates like this: 

readOGR(dsn="IS50V_STRANDLINA_24122014_ISN2004/IS50V_STRANDLINA_SHP", layer="is50v_strandlina_flakar_24122014")->IslHD
spTransform(IslHD,CRS(" +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 "))->IslHD 

then plot : plot(IslHD) 

I tried several stuff for making a scale, results were either ugly or wrong… 
The function Scalebar make a cute scale but really absurd… 

Any idea? 

Best regards

Benjamin   
 
 
On Thursday, April 23, 2015 05:18 GMT, Frede Aakmann Tøgersen <frtog at vestas.com> wrote: 
 
> Hi Benjamin
> 
> Yes, there are several ways to do that. But it depends on which kind of plotting function you used. Usually it is a setting of an argument of the plotting function.
> 
> I cannot help you more since I don't more than the information you provided in your email.
> 
> If you want more help from this list please provide a small example showing which functions you used with information on which package(s) they belong. Then you'll probably get more help.
> 
> The small example you can probably find in the example section on the help page for the plotting function.
> 
> Best Regards
> 
> Frede Aakmann Tøgersen
> Specialist, M.Sc., Ph.D.
> Plant Performance & Modeling
> 
> Technology & Service Solutions
> T +45 9730 5135
> M +45 2547 6050
> frtog at vestas.com
> http://www.vestas.com
> 
> Company reg. name: Vestas Wind Systems A/S
> This e-mail is subject to our e-mail disclaimer statement.
> Please refer to www.vestas.com/legal/notice
> If you have received this e-mail in error please contact the sender.

> 
> -----Original Message-----
> From: R-sig-Geo [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of Gilles Benjamin Leduc
> Sent: 23. april 2015 02:46
> To: r-sig-geo at r-project.org
> Subject: [R-sig-Geo] adding a scale
> 
> Hi all,
> 
> I am ploting map from shapefiles (curently read with readOGR from rgdal). 
> My PhD supervisor asked me to add a scale… Before going in crazy computation and the arrow function I wonder… Is there a function that can do it automatically (or easily) 
> 
> Thanks in advance 
> 
> Benjamin
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list