If grid
and grid_to
are both vectors, the line between
grid
and grid_to
is drawn (using Bresenham's line algorithm).
If grid
is a list, The path lines for each element in the grid will be
drawn.
Usage
grid_line(grid, grid_to = NULL, close = FALSE, skip_na = FALSE)
Arguments
- grid
A grid
vector or a list of grid
vector.
- grid_to
A grid
vector.
- close
Should the path of each element be closed when grid
is a list?
- skip_na
Should skip the NA
grid and connects the paths? FALSE
by
default.
Value
A list of grid
vectors.