rect_grid: Rectangle grid

View source: R/rect_grid.R

rect_gridR Documentation

Rectangle grid

Description

Generate a rectangular receptor grid

Usage

rect_grid(center_x = 50, center_y = 50, width_x = 100, length_y = 200,
  spacing_x = 7, spacing_y = 7, inner_x = NULL, inner_y = NULL,
  show_plot = TRUE)

Arguments

center_x

Grid's center X coordinate.

center_y

Grid's center Y coordinate.

width_x

Width of receptor grid on the X axis.

length_y

Length of receptor grid on the Y axis.

spacing_x

Distance between receptors on the X axis.

spacing_y

Distance between receptors on the Y axis.

inner_x

Width of inner buffer to leave empty.

inner_y

Length of inner buffer to leave empty.

show_plot

Plot receptor grid.

Examples

rect_grid(center_x   = 0,
          center_y   = 0,
          length_x   = 100,
          width_y    = 200,
          spacing_x  = 7,
          spacing_y  = 7)

dKvale/receptors documentation built on June 26, 2022, 7:20 a.m.