View source: R/boxGrobs_units.R
| MidDistanceX | R Documentation |
Calculates the midpoint between two units. If the arguments are numeric they are converted to npc units.
MidDistanceX(u1, u2)
MidDistanceY(u1, u2)
u1 |
The first unit |
u2 |
The second unit |
A unit object
MidDistanceX(grid::unit(.1, "npc"), grid::unit(.8, "npc"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.