get_preset: Function that returns a 'preset', a list containing a preset...

Description Usage Arguments Value Examples

Description

This function returns a preset object that contains a preset layout of a plot, which can be fed to the function pngpdf_preset(), to use a preselected layout for various arrangements of plots in the device.

Usage

1
get_preset(n = 1, layout = "")

Arguments

n

Number of plots in the figure. (default 1) Currently, only n=1-3 are available.

layout

The layout number. (default ”). Currently for n=2, 'h50' (horizontal division) and 'v50' (vertical division) are available. For n=1 and n=3, only one preset is available.

Value

a preset, list of plt vectors, width and height.

Examples

1
2
3
4
5
6
7
8
9
preset3a = get_preset(3)
pngpdf_preset( 
  list( 
      function(){barplot(1:4, names.arg=c('a','b','c','d'),ylab="some y",xlab="some x", col=COLOR4())},
      function(){plot(1:100,1:100,pch=19, type='o', xlab="")},
      function(){plot(rnorm(100),type='h')}
  ),
  'test5', stylefunc_blue, preset3a
)

SooLee/plotosaurus documentation built on May 9, 2019, 1:52 p.m.