Applies a vector shift to a line segment pattern.
Line Segment pattern (object of class
Vector of length 2 representing a translation.
Location that will be shifted to the origin.
Either a numeric vector of length 2 giving the location,
or a point pattern containing only one point,
or a list with two entries named
The line segment pattern, and its window, are
translated by the vector
This is a method for the generic function
origin is given,
vec will be ignored; instead the shift will be performed
so that the specified geometric location is shifted to the
coordinate origin (0,0).
origin should be either a numeric vector of length
2 giving the spatial coordinates of a location, or one of the character
"bottomright" (partially matched).
origin="centroid" then the centroid of the window will be
shifted to the origin. If
origin="midpoint" then the centre of
the bounding rectangle of the window will be shifted to the origin.
origin="bottomleft" then the bottom left corner of the
bounding rectangle of the window will be shifted to the origin,
and so on.
Another line segment pattern (of class
"psp") representing the
result of applying the vector shift.
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.