Hi Maxime,
Just add the sp.layout argument as you would normally do.
cheers,
Paul
Maxime Pauwels wrote:
Dear Paul,
This function looks very great!
I work on a grid and it could be very useful. However, before clicking
on the screen, I have to add a SpatialLinesDataFrame and a list of
points
Dear Paul,
This function looks very great!
I work on a grid and it could be very useful. However, before clicking
on the screen, I have to add a SpatialLinesDataFrame and a list of
points on the spplot (previously using sp.layout). Is it possible with
your function?
Thank you
Maxime
Paul Hi
On Tue, Jun 30, 2009 at 1:33 PM, Maxime
Pauwels wrote:
> Dear all,
>
> I think there is a function in the sp package to get the coordinates of a
> point on a sp plot (~equivalent to "locator").
> Could someone remember me its name?
>
spplot.locator would seem to be it!
library(sp)
ls("package:sp"
Hi Maxime,
You need the grid.locator() function from the grid package in
combination with the trellis.focus() command from the lattice pacakge.
The following function I wrote has a syntax similar to spplot but allow
the user to click screen. The output of the function is either a
SpatialPoint
Dear all,
I think there is a function in the sp package to get the coordinates of
a point on a sp plot (~equivalent to "locator").
Could someone remember me its name?
Many thanks,
max
--
Maxime Pauwels
Researcher ID: http://www.researcherid.com/rid/A-1745-2009
Laboratoire de Génétique et Ev