[R-sig-Geo] Help on pointLabel() function for engineering drawings

Roger Bivand Roger.Bivand at nhh.no
Sat Sep 26 19:47:18 CEST 2015


On Sat, 26 Sep 2015, Dhiraj Khanna wrote:

> Thank you Oscar for the reply. Will try as you suggest. However, must admit
> that I am quite a noob when it comes to plotting. Was looking at your
> lineLabel() function and couldn't figure out what a "list of lines" is.
> Anyway, will struggle a little and do my homework. Just one question
> though. Will using the lineLabel function align the labels as per the
> orientation of the line? If so, that is not what I need. The labels need to
> be straight.
>
> Also, I changed the lines to points and then tried the pointLabel function.
> However, it ignores all the points that are not mentioned in the argument
> of the function and still plots over them. Any workaround for this?

Maybe also see rgeos::polygonsLabel(), by Karl Ove Hufthammer, to compute 
optimal label positions for polygons - if your background data can be 
represented as a SpatialPolygons object.

Roger

>
> Regards
>
> Dhiraj Khanna
> Mob:09873263331
>
> 2015-09-26 12:45 GMT+05:30 Oscar Perpiñán Lamigueiro <oscar.perpinan at upm.es>
> :
>
>> Hi,
>>
>> You could try the `lineLabel` and `sp.lineLabel` functions of this same
>> package.
>>
>> Best.
>>
>> Oscar.
>> --
>> Oscar Perpiñán Lamigueiro
>> Dpto. Ing. Eléctrica, Electrónica, Automática y Física Aplicada
>> Escuela Técnica Superior de Ingeniería y Diseño Industrial
>> URL: http://oscarperpinan.github.io
>>
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no


More information about the R-sig-Geo mailing list