quadrant | R Documentation |
Returns a character vector of NE, SE, SW, NW corresponding to north-east, south-east quadrants respectively. If number_out is TRUE, returns numbers from 1:4, respectively.
quadrant(x, cent = NULL, number_out = FALSE)
x |
Object of class sf |
cent |
The centrepoint of the region of interest. Quadrants will be defined based on this point. By default this will be the geographic centroid of the zones. |
number_out |
Should the result be returned as a number? |
Other geo:
bbox_scale()
,
bind_sf()
,
geo_bb()
,
geo_bb_matrix()
,
geo_buffer()
,
geo_length()
,
geo_projected()
,
geo_select_aeq()
x = zones_sf
(quads <- quadrant(x))
plot(x$geometry, col = factor(quads))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.