clip_area | R Documentation |
This function is deprecated because the functionality has been incorporated
into the improved sfext::st_clip()
function which uses a similar set
of parameters.
Clip based on the corner of the bounding box. Used for the street name
location option within layer_area_streets
clip_area(
area,
clip = c("top", "right", "bottom", "left", "topright", "bottomright", "bottomleft",
"topleft"),
flip = FALSE,
edge = TRUE,
edge_dist = 5
)
area |
|
clip |
Character string describing the part of the area to clip or remove. Options include c("top", "right", "bottom", "left", "topright", "bottomright", "bottomleft", "topleft"). If NULL, the area is not clipped and a full edge can be returned. |
flip |
Logical. Default FALSE. If TRUE, the reverse of the select area
is removed, e.g. if |
edge |
Logical. Default TRUE. If TRUE, only the edge of the clipped area
is returned. If TRUE with a negative |
edge_dist |
Numeric. Distance in meters to use for the edge. Default 5 meters. Use negative values for an inside edge or positive numbers for an outside edge. |
sf
object clipped based on parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.