partition_raster_bg: Function to make partitions from background and foreground...

View source: R/get_important_rasters.R

partition_raster_bgR Documentation

Function to make partitions from background and foreground rasters.

Description

This function uses the output from prepare_raster() and makes background partitions using several methods.

Usage

partition_raster_bg(
  env.list,
  categoricals = NULL,
  number.bg.points = 10000,
  bg.raster = 1,
  plotDIR = "./plots",
  showPLOTS = FALSE,
  agg.factor = 2
)

Arguments

env.list

Object output from prepare_rasters() function

categoricals

Character vector of categorical layer names

number.bg.points

Number of background points to generate

bg.raster

Raster to use for background points

plotDIR

Directory to save the plots to

showPLOTS

Boolean; Whether to print plots to screen

agg.factor

A vector of 1 or 2 numbers for the checkerboard methods

Value

Object with background points

Examples

bg <- partition_raster_bg(env.list = envList,
                          number.bg.points = 10000,
                          bg.raster = 1,
                          plotDIR = "./plots",
                          showPLOTS = TRUE,
                          agg.factor = 2)

btmartin721/ClineHelpR documentation built on Oct. 15, 2024, 5:05 a.m.