geom_xnicher_occ: Occurrence-points layer

View source: R/geom_xnicher.R

geom_xnicher_occR Documentation

Occurrence-points layer

Description

A self-contained ggplot2 layer that draws an occurrence cloud env_occ in 2-D environmental space.

Usage

geom_xnicher_occ(
  env_occ,
  var_names = NULL,
  size = 1.2,
  alpha = 1,
  colour = "black",
  shape = 16,
  ...
)

Arguments

env_occ

Matrix or data frame with at least two columns. Only the first two columns are used.

var_names

Optional character vector of length 2 used to name the columns of the layer's internal data frame.

size, alpha, colour, shape

Aesthetic parameters.

...

Additional fixed parameters passed to geom_point.

Value

A ggplot2 layer.

Examples


  library(ggplot2)
  ggplot() +
    geom_xnicher_background(example_env_m_2d) +
    geom_xnicher_occ(example_env_occ_2d)


xnicher documentation built on Sept. 15, 2026, 5:08 p.m.