View source: R/bezier_private_functions.R
getAbsoluteWidth | R Documentation |
The "npc" unit
is not absolute, i.e.
it depends on the relation between height and width within
the current viewport. We therefore need to change these values
to the value most likely intended. This is believed to be the
main direction of the arrow as specified by the first and last
bezier control points x
and y
.
getAbsoluteWidth(w, default.units, x = x, y = y)
w |
The width that is to be changed |
default.units |
A string indicating the default units to use
if |
x |
A numeric vector or unit object specifying x-locations of spline control points. |
y |
A numeric vector or unit object specifying y-locations of spline control points. |
The width transformed into a unit
of "mm"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.