- object
An object computed with analyze_objects_shp()
.
- attribute
The name of the quantitative variable in the
object_index
to be used for coloring the rectangles.
- color
A vector of two colors to be used for the color scale.
- viewer
The viewer option. If not provided, the value is retrieved
using get_pliman_viewer()
. This option controls the type of viewer to use
for interactive plotting. The available options are "base"
and
"mapview"
. If set to "base", the base R graphics system is used for
interactive plotting. If set to "mapview", the mapview package is used. To
set this argument globally for all functions in the package, you can use
the set_pliman_viewer()
function. For example, you can run
set_pliman_viewer("mapview")
to set the viewer option to "mapview" for
all functions.
- max_pixels
integer > 0. Maximum number of cells to plot the index. If
max_pixels < npixels(img)
, downsampling is performed before plotting the
index. Using a large number of pixels may slow down the plotting time.
- downsample
integer; for each dimension the number of
pixels/lines/bands etc that will be skipped; Defaults to NULL
, which will
find the best downsampling factor to approximate the max_pixels
value.
- downsample_fun
function; if given, downsampling will apply
downsample_fun``
to each of the the subtiles.
- alpha
The transparency level of the rectangles' color (between 0 and 1).
- legend.position
The position of the color legend, either
"bottom"
or "right"
.
- na.color
The color to be used for rectangles with missing values in
the quantitative variable.
- classes
The number of classes in the color scale.
- round
The number of decimal places to round the legend values.
- horiz
Logical, whether the legend should be horizontal (TRUE
)
or vertical (FALSE
).