minmaxHelper: minmaxHelper

Description Usage Arguments Value Author(s) Examples

View source: R/minmaxHelper.R

Description

Computes the x- and y- axis constraints for all prettyGraphs functions.

Usage

1
minmaxHelper(mat1, mat2 = NULL, axis1 = 1, axis2 = 2, findBounds = TRUE)

Arguments

mat1

Matrix that will be plotted. Must be at least 2 rows by 2 columns.

mat2

if NULL, mat2=mat2. Second matrix that will be plotted (if a biplot). Must be at least 2 rows by 2 columns.

axis1

Which column of the matrix will be the x-axis? Default = 1.

axis2

Which column of the matrix will be the y-axis? Default = 2.

findBounds

a boolean. If TRUE, min and max values are found for positive and negative on axis1 and axis2. If FALSE, one value is used for all constraints.

Value

minMaxList

A list with the following values: minx, miny, maxx, maxy

Author(s)

Derek Beaton

Examples

1
2

prettyGraphs documentation built on May 1, 2019, 9:25 p.m.