equalSteps: Creates intervals with equal sizes to be used by plot...

View source: R/slicing.R

equalStepsR Documentation

Creates intervals with equal sizes to be used by plot functions

Description

Creates intervals with equal sizes from min/max values to be used by plot functions. If data is provided, it gets min/max from data.

Usage

equalSteps(min = NULL, max = NULL, slices, data = NULL)

Arguments

min

The minimum value

max

The maximum value

slices

The number of slices to be created. Note that, when you have n slices, the legend will have n - 1 colors.

data

Any data that can be converted to a data.frame. The first column of the data will be used to compute min and max.

Examples

equalSteps(0, 100, 5)

pedro-andrade-inpe/colrow documentation built on Oct. 3, 2023, 8:48 a.m.