Allows the user to create a point pattern on a linear network by point-and-click in the display.
Linear network on which the points will be placed.
An object of class
Number of points to be added (if this is predetermined).
Vector of types, when creating a multitype point pattern.
Optional extra arguments to be passed to
Logical value indicating whether to create a new plot
Main heading for plot.
For internal use only. Do not use this argument.
This function allows the user to create a point pattern on a linear network by interactively clicking on the screen display.
First the linear network
L is plotted on the current screen device.
Then the user is prompted to point the mouse at any desired locations
and click the left mouse button to add each point.
Interactive input stops after
n clicks (if
n was given)
or when the middle mouse button is pressed.
The return value is a point pattern on the network
containing the locations of all the clicked points,
after they have been projected onto the network
Any points that were clicked outside the bounding window of the network
will be ignored.
If the argument
types is given, then a multitype point pattern
will be created. The user is
prompted to input the locations of points of type
for each successive index
i. (If the argument
given, there will be
n points of each type.)
The return value is a multitype point pattern on a linear network.
This function uses the R command
input the mouse clicks. It only works on screen devices such as
‘X11’, ‘windows’ and ‘quartz’. Arguments that can be
pch (plotting character),
cex (character expansion
col (colour). See
A point pattern (object of class
, based on an idea by Dominic Schuhmacher.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.