plot {segmetric} | R Documentation |
Plot function
Description
Plot a segmetric map according to the parameter type
:
-
"base"
: simple plot of the reference or segmentation polygons; -
"subset"
: plot polygons from a subset over the base plot; -
"choropleth"
: plot a choropleth map from polygons of a subset using metric values.
Usage
## S3 method for class 'segmetric'
plot(
x,
type = "base",
...,
title = NULL,
layers = c("ref_sf", "seg_sf"),
background = "#FFFFFF",
ref_color = "#FF00009F",
ref_fill = "#FFFFFF00",
ref_label = "reference",
ref_size = 2,
ref_symbol = 2,
seg_color = "#0000009F",
seg_fill = "#FFFFFF00",
seg_label = "segment",
seg_size = 1,
seg_symbol = 3,
selected_fill = "#9A9AFF50",
plot_centroids = TRUE,
centroids_color = "#000000FF",
centroids_label = "centroid",
subset_id = NULL,
subset_color = "#FFFFFF00",
subset_fill = "#F0E4167F",
metric_id = NULL,
break_style = "jenks",
choropleth_palette = "YlGnBu",
choropleth_palette_reverse = FALSE,
choropleth_size = 0.1,
plot_extent = NULL,
plot_legend = TRUE,
plot_axes = TRUE
)
Arguments
x |
A |
type |
A |
... |
Ignored. |
title |
A |
layers |
A |
background |
A |
ref_color , seg_color , ref_fill , seg_fill |
A |
ref_label , seg_label , centroids_label |
A |
ref_size , seg_size |
A |
ref_symbol , seg_symbol |
An |
selected_fill |
A |
plot_centroids |
A |
centroids_color |
A |
subset_id |
A |
subset_color , subset_fill |
A |
metric_id |
A |
break_style |
A |
choropleth_palette |
A |
choropleth_palette_reverse |
A |
choropleth_size |
A |
plot_extent |
A |
plot_legend |
A |
plot_axes |
A |