setparam: Set parameters to make plots.

Usage Arguments Examples

Usage

1

Arguments

labels

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
##---- 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 (labels) 
{
    long <- length(labels)
    wid <- 3500
    hei <- 3500
    res <- 400
    if (max(nchar(labels)) < 10) {
        ce <- 0.8
    }
    else if (max(nchar(labels)) < 15) {
        ce <- 0.6
    }
    else {
        ce <- 0.4
    }
    if (long < 35) {
        if (max(nchar(labels)) < 10) {
            ce <- 0.8
        }
        else if (max(nchar(labels)) < 15) {
            ce <- 0.6
        }
        else {
            ce <- 0.4
        }
    }
    else if (long < 90) {
        ce <- 0.4
    }
    else if (long < 140) {
        ce <- 0.3
    }
    else {
        ce <- 0.2
    }
    return(list(wid = wid, hei = hei, res = res, ce = ce))
  }

machalen/QualityGraphs documentation built on Oct. 22, 2019, 8:29 p.m.