processClipping | R Documentation |
Sets image clipping if needed
processClipping(karyoplot, clipping, data.panel)
karyoplot |
(KaryoPlot) A KaryoPlot object representing the current plot |
clipping |
(logical) Wheter clipping should be activated or not |
data.panel |
(data panel identifier) The name of the data panel on which the plot should be allowed. Anything plotted outside it will be hidden (if clipping==TRUE and the plot is a zoom plot) |
Small utility function to help manage clipping. If the current plot is a zoomed plot and clipping is TRUE, activate the clip to the current data.panel. This will hide any plotting ocurring out of the data.panel region.
Returns the original karyoplot object, unchanged.
Users wont usually use this function. It is used by the plotting functions to set the clipping if needed
kp <- plotKaryotype()
processClipping(kp, TRUE, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.