permuteCurves: permuteCurves

View source: R/textBoxPlacement.R

permuteCurvesR Documentation

permuteCurves

Description

reorder multiple curves so that the curve with the largest y range is on the bottom of the staggered graph

Usage

permuteCurves(xList, yList, tList, textBoxHeights, permInd)

Arguments

xList

list whose components are numeric vectors of the x values for overlaid curves

yList

list whose components are numeric vectors of the y values for overlaid curves

tList

list of character string texts to insert in plot

textBoxHeights

return value of textBoxUserUnits()

permInd

return value of permInd()

Value

returns a list whose (re-ordered) components are:

  • xList a list of numeric vector for x values

  • yList a list of numeric vector for y values - re-ordered and offset-adjusted

  • tList a list of character strings for text boxes to label the curves

  • offset a numeric vector offset to add to each staggered curve

  • ystart a numeric vector of starting positions

Examples


units<-textBoxUserUnits(textList,yrange(yList1),verbose=TRUE)
permuteCurves(xList1,yList1,textList,units,permInd(yrange(yList1)))



textBoxPlacement documentation built on March 31, 2023, 6:05 p.m.