compute_npcx | R Documentation |
Convert character-encoded positions to npc units and shift postions to avoid overlaps when grouping is active. If numeric validate npc values.
compute_npcx(x, group = 1L, h.step = 0.1, margin.npc = 0.05, each.len = 1)
compute_npcy(y, group = 1L, v.step = 0.1, margin.npc = 0.05, each.len = 1)
x , y |
numeric or character vector of coordinates. |
group |
integer ggplot's group id. Used to shift coordinates to avoid overlaps. |
h.step , v.step |
numeric |
margin.npc |
numeric |
each.len |
integer The number of steps per group. |
A numeric vector with values in the range [0, 1]
representing
npc coordinates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.