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

Oscar Perpiñán Lamigueiro oscar.perpinan at upm.es
Sun Sep 27 18:28:22 CEST 2015


> 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 over them. Any
> workaround for this?

You may include empty characters ("") as elements in the _labels_
vector. For example:

x <- 1:5
y <- 1:5
labels <- c('A', 'B', '', 'D', '')
plot(x, y)
pointLabel(x, y, labels)

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



More information about the R-sig-Geo mailing list