View source: R/textBoxPlacement.R
permuteCurves | R Documentation |
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)
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() |
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
units<-textBoxUserUnits(textList,yrange(yList1),verbose=TRUE)
permuteCurves(xList1,yList1,textList,units,permInd(yrange(yList1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.