prettyGraphs (version 2.1.6)

minmaxHelper: minmaxHelper

Description

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

Usage

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

Examples

Run this code
# NOT RUN {
	data(beavers)
	minMaxList <- minmaxHelper(as.matrix(beaver1),as.matrix(beaver1),1,2) 
# }

Run the code above in your browser using DataLab