setgPars: Set default graphical parameters

View source: R/setgPars.R

setgParsR Documentation

Set default graphical parameters

Description

Set default graphical parameters

Usage

setgPars(type = c("plot", "publish", "shiny"), gPars = list())

Arguments

type

(string) plot type. Default: 'plot'. Other options are 'shiny' and 'publish'.

gPars

(list) list of graphical parameters to supersede defaults

Value

A list with the following arguments:

cols

A set of colors

cols_tr

A set of highly transparent colors

cols_tr2

Sames as cols_tr with more density

pty

A character specifying the type of plot region to be used; 's' generates a square plotting region and 'm' generates the maximal plotting region (default: 's')

mar

Margins around the plot. The default is c(3,3,3,.5). See graphics::par

.

mgp

The margin line (in mex units) for the axis title, axis labels and axis line. The default is c(2,.75,0).

tcl

The length of tick marks as a fraction of the height of a line of text. The default is -0.5.

lwd

Width of the plotted lines. The default is 4.

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. The default value is 4.

cex.leg

A numerical value giving the amount by which the legends should be magnified relative to the default. The default value is 0.7.

reso

A numerical value giving the nominal pixel size for a PNG plot. The default is 1200.


ppernot/ErrViewLib documentation built on June 1, 2024, 4:33 a.m.