layer_statistic: layer of spatial statistic label

View source: R/layer_statistic.R

layer_statisticR Documentation

layer of spatial statistic label

Description

layer of spatial statistic label

Usage

layer_statistic(
  x = 0.1,
  y = 0.9,
  digit = 2,
  include.sd = TRUE,
  name = "u",
  unit = "",
  FUN = weightedMedian,
  hjust = 0,
  vjust = 1,
  cex = 1,
  fill = "white",
  ...
)

Arguments

x

A numeric vector or unit object specifying x-values.

y

A numeric vector or unit object specifying y-values.

name

A character identifier.

FUN

one of matrixStats::weightedMedian(), matrixStats::weightedMean()

hjust

A numeric vector specifying horizontal justification. If specified, overrides the just setting.

vjust

A numeric vector specifying vertical justification. If specified, overrides the just setting.

...

other parameters to grid::gpar()


kongdd/latticeGrob documentation built on March 30, 2024, 3:35 a.m.