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

2015-09-28 Thread Dhiraj Khanna
Oscar, I did as you suggested by putting “” for labels that I didn’t want. However, the labels still overlap the drawing :( Here is my code: library(dplyr)library(maptools)#Known Size of Sheet xmin <- -357.7 xmax <- 19.3 ymin <- -90.2 ymax <- 159.7 #Read in the data linescoords <-

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

2015-09-27 Thread Oscar Perpiñán Lamigueiro
> Will using the lineLabel function align the labels as per the > orientation of the line? Yes, exactly. > 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

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

2015-09-26 Thread Oscar Perpiñán Lamigueiro
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

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

2015-09-26 Thread Roger Bivand
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

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

2015-09-24 Thread Dhiraj Khanna
Hello, I am trying to solve automatic label placement problem for an engineering drawing using the Simulated Annealing algorithm. I came across the pointLabel() function in the