> 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
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo