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)
numeric or character vector of coordinates.
integer ggplot's group id. Used to shift coordinates to avoid overlaps.
numeric [0..1] The step size for shifting coordinates in npc units.
numeric [0..1] The margin added towards the nearest plotting area edge when converting character coordinates into npc.
integer The number of steps per group.
A numeric vector with values in the range [0..1] representing npc coordinates.