Compute a Non-Overlapping Layout of Text Boxes to Label Multiple Overlain Plots

Compute a non-overlapping layout of text boxes to label multiple overlain curves. For each curve, iteratively search for an adjacent x,y position for the text box that does not overlap with the other curves. If this process fails, then offsets are computed to add to the y values for each curve, that results in sufficient space to add all of the text labels.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("textBoxPlacement")

1.0 by Barry Zeeberg, 4 years ago


Browse source code at https://github.com/cran/textBoxPlacement


Authors: Barry Zeeberg [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports graphics, stats, grDevices

Suggests knitr, rmarkdown, testthat


Imported by SherlockHolmes.


See at CRAN