View source: R/params-helpers.R
| add_clip_off | R Documentation |
Collapsed-triangle vertices (especially the MRCA apex) often extend beyond
the tip-based y-axis range, so the plot panel must NOT clip them. This
helper is the single, sanctioned place to add clip = "off":
rectangular -> coord_cartesian(clip = "off")
circular/fan -> coord_polar(theta = "y", clip = "off")
add_clip_off(p, layout = "rectangular")
p |
A ggplot object. |
layout |
"rectangular" or "circular". |
A utils::packageVersion("ggplot2") guard protects against ggplot2
< 3.5.0 (which does not support clip = "off"): in that case we
log_warning and skip clip rather than silently mis-rendering.
The ggplot object with the appropriate clip-off coordinate added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.