powered by
reorder multiple curves so that the curve with the largest y range is on the bottom of the staggered graph
permuteCurves(xList, yList, tList, textBoxHeights, permInd)
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
list whose components are numeric vectors of the x values for overlaid curves
list whose components are numeric vectors of the y values for overlaid curves
list of character string texts to insert in plot
return value of textBoxUserUnits()
return value of permInd()
units<-textBoxUserUnits(textList,yrange(yList1),verbose=TRUE) permuteCurves(xList1,yList1,textList,units,permInd(yrange(yList1)))
Run the code above in your browser using DataLab