makePlot.legend.box {QoRTs} | R Documentation |
Plots the universal legend for a given plotter object.
makePlot.legend.box(plotter, debugMode, singleEndMode, cex.legend, ncol, plot = TRUE, ...) makePlot.legend.over(position, plotter, debugMode , singleEndMode, ncol = NULL, plot = TRUE, ...)
plotter |
A |
position |
For makePlot.legend.over, a character string indicating the location
where you want the legend to appear. This is passed to
|
debugMode |
Logical. If TRUE, debugging data will be printed to the console. |
singleEndMode |
Logical. Determines whether the dataset consists of single-ended reads. By default this is determined from the data. Thus, this parameter should never need to be set by the user. |
cex.legend |
Numeric. The cex expansion factor passed to |
ncol |
Integer value. The number of columns in the legend. By default this will be selected automatically depending on the number of items in the legend. |
plot |
Logical. If FALSE, suppress plotting and return |
... |
Arguments to be passed to methods, such as
graphical parameters (see |
makePlot.legend.box creates a new plot (opening the next graphics frame), and writes a small description of the given plotter type along with plotting a color-coded legend (if applicable).
makePlot.legend.over adds a legend to the current plotting frame.
data(res,package="QoRTsExampleData");
plotter <- build.plotter.colorByGroup(res);
#Add a legend to an existing plot:
makePlot.strandedness.test(plotter);
## Starting: Strandedness Test plot.
## Finished: Strandedness Test plot.[time: 2018-09-25 13:12:41],[elapsed: 0.07 secs]
makePlot.legend.over("topright", plotter)
#Or make a legend as a separate plot:
makePlot.legend.box(plotter);