- definition
a character string of the contrast or image definition used to define this layer.
Can be a simple image name (e.g., 'underlay') or a contrast string (e.g., 'overlay[overlay > 5]'
)
- name
the name of this layer, used for referencing in layer and panel modifications
- fill
A character string indicating the color used to fill all non-NA pixels in this layer. This is used to set
the fill color, in distinction to color mapping: mapping=aes(fill=<variable>)
.
- fill_scale
a ggplot scale_fill_* object used for mapping the fill column to the color of pixels in this layer.
- mapping
the aesthetic mapping of the layer data to the display. Should be an aes() object and supports
fill
(color of filled pixels). Default is aes(fill=value)
, which maps the numeric value of the layer data
to the fill color of the squares at each spatial position. For labeled data, you might use aes(fill=<label_col_name>)
.
- limits
if provided, sets the upper and lower bounds on the scale
- breaks
if provided, a function to draw the breaks on the fill scale
- show_legend
if TRUE, show the fill scale in the plot legend. Default is TRUE, except when `name="underlay"``
- interpolate
passes to geom_raster and controls whether the fill is interpolated over continuous space
- unify_scales
if TRUE, when this layer is reused across panels, unify the scales to match
- alpha
a number between 0 and 1 that sets the alpha transparency of this layer. Default: 1
- blur_edge
the standard deviation (sigma) of a Gaussian kernel applied to the edge of this layer to
smooth it. This makes the layer less jagged in appearance and is akin to antialiasing.
- fill_holes
An optional positive integer specifying the size of holes (in pixels) inside clusters
to be filled by nearest neighbor imputation. Default: 0.
- remove_specks
An optional positive integer specifying the size of specks (in pixels) to be removed from each slice prior
to display. Specks are small clusters that may be distracting and contribute to a 'salt and pepper' appearance.
- trim_threads
the minimum number of neighboring pixels (including diagonals) that must be present to keep a pixel.