flake: Adjust coordinates for small multiples plotting.

Description Usage Arguments Details

View source: R/visualization.R

Description

This function is used to progressively offset the coordinates of map layers in long-format tabulated geographic data so that they can be plotted tightly with overlapping extents. It is designed for use on multi-layer raster data that has been converted into a data frame.

Usage

1
flake(target, group, offset, summary = F)

Arguments

target

Numeric vector of coordinates to be adjusted.

group

Numeric vector of group factors, equal in length to target.

offset

Numeric value representing offset distance per group.

summary

Logical

Details

It returns a vector of adjusted coordinates equal in length to the input coordinates.


matthewkling/ecoclim documentation built on May 21, 2019, 1:04 p.m.