Examples for 'grid::unit.length'


Length of a Unit Object

Aliases: unit.length

Keywords: dplot

### ** Examples

length(unit(1:3, "npc"))
[1] 3
length(unit(1:3, "npc") + unit(1, "inches"))
[1] 3
length(max(unit(1:3, "npc") + unit(1, "inches")))
[1] 1
length(max(unit(1:3, "npc") + unit(1, "strwidth", "a"))*4)
[1] 1
length(unit(1:3, "npc") + unit(1, "strwidth", "a")*4)
[1] 3

[Package grid version 4.2.3 Index]