pointsOnLines(X, eps = NULL, np = 1000)
"psp"
).eps
)."ppp"
) in the same window
as X
.X
, a succession of points
is placed along the line segment. These points are equally spaced at
a distance eps
, except for the first and last points
in the sequence. The spacing eps
is measured in coordinate units of X
.
If eps
is not given, then it is determined by
eps = len/np
where len
is the total length of the
segments in X
. The actual number of points will then be slightly
larger than np
.
psp
,
ppp
,
runifpointOnLines
X <- psp(runif(20), runif(20), runif(20), runif(20), window=owin())
Y <- pointsOnLines(X, eps=0.05)
plot(X, main="")
plot(Y, add=TRUE, pch="+")
Run the code above in your browser using DataLab