Generates a pattern of dummy points in a window, given a data point pattern. The dummy points lie on the radii of circles emanating from each data point.
spokes(x, y, nrad = 3, nper = 3, fctr = 1.5, Mdefault = 1)
Vector of x coordinates of data points, or a list
Vector of y coordinates of data points. Ignored
Number of radii emanating from each data point.
Number of dummy points per radius.
Length of largest spoke radius is
This function is useful in creating dummy points for quadrature
Given the data points, the function creates a collection of
nrad * nper * length(x) dummy points.
Around each data point
(x[i],y[i]) there are
nrad * nper dummy points, lying on
nper dummy points
equally spaced along each radius.
The (equal) spacing of dummy points along each radius is
controlled by the factor
The distance from a data point to the furthest of its associated
dummy points is
fctr * M
M is the mean nearest neighbour distance
for the data points.
If there is only one data point the nearest neighbour distance
is infinite, so the value
Mdefault will be used in place
x is a point pattern, then the value returned is
also a point pattern, which is clipped to the window
x. Hence there may be fewer than
nrad * nper * length(x) dummy points in the pattern
x is a point pattern, a point pattern with
window equal to that of
x. Otherwise a list with two
y. In either case the components
y of the value are numeric vectors giving
the coordinates of the dummy points.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.