How to nicely rescale lattice figures?

后端 未结 2 934
说谎
说谎 2021-02-04 08:53

When preparing figures for printing I often need to make them much smaller than they appear on screen. It is not uncommon to have figures down to just a few cm across. With the

2条回答
  •  感动是毒
    2021-02-04 09:31

    You need to pass the cex=... to the legend / key, not the entire plot:

    This is the default:

    xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos,
           type = "a",
           auto.key =
             list(space = "right", points = FALSE, lines = TRUE))
    

    enter image description here

    Compare the results when you use cex=0.25 in the key:

    xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos,
           type = "a",
           auto.key =
             list(space = "right", points = FALSE, lines = TRUE, cex=0.25))
    

    enter image description here

提交回复
热议问题