| npc_to_data_coord {ggpubr} | R Documentation | 
Convert NPC to Data Coordinates
Description
Convert NPC (Normalized Parent Coordinates) into data coordinates.
Usage
npc_to_data_coord(npc, data.ranges)
Arguments
| npc | a numeric vector. Each value should be in [0-1] | 
| data.ranges | a numeric vector of length 2 containing the data ranges (minimum and the maximum) | 
Value
a numeric vector representing data coordinates.
See Also
Examples
npc_to_data_coord(npc = c(0.2, 0.95), data.ranges = c(1, 20))
as_npc(c("top", "right")) %>%
   npc_to_data_coord(data.ranges = c(1, 20))
[Package ggpubr version 0.6.0 Index]