unit.rep

0th

Percentile

Replicate Elements of Unit Objects

Replicates the units according to the values given in times and length.out.

This function has been deprecated in favour of a unit method for the generic rep function.

Keywords
dplot
Usage
unit.rep(x, …)
Arguments
x

An object of class "unit".

arguments to be passed to rep such as times and length.out.

Value

An object of class "unit".

See Also

rep

Aliases
  • unit.rep
Examples
library(grid) rep(unit(1:3, "npc"), 3) rep(unit(1:3, "npc"), 1:3) rep(unit(1:3, "npc") + unit(1, "inches"), 3) rep(max(unit(1:3, "npc") + unit(1, "inches")), 3) rep(max(unit(1:3, "npc") + unit(1, "strwidth", "a"))*4, 3) rep(unit(1:3, "npc") + unit(1, "strwidth", "a")*4, 3)
Documentation reproduced from package grid, version 3.4.1, License: Part of R 3.4.1

Community examples

Looks like there are no examples yet.