preDrawDetails.resizingTextGrob: helper for resizingTextGrob.R

Usage Arguments Examples

Usage

1

Arguments

x
...

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, ...) 
{
    h <- convertHeight(unit(1, "npc"), "mm", valueOnly = TRUE)
    fs <- rescale(h, to = c(80, 15), from = c(120, 20)) * x$scale.fact
    pushViewport(viewport(gp = gpar(fontsize = fs)))
  }

tim-salabim/Rtography documentation built on May 31, 2019, 1:46 p.m.