Learn R Programming

rafalib (version 1.0.0)

mypar: mypar

Description

Called without arguments, this function optimizes graphical parameters for the RStudio plot window. bigpar uses big fonts which are good for presentations.

Usage

mypar(a = 1, b = 1, brewer.n = 8, brewer.name = "Dark2", cex.lab = 1, cex.main = 1.2, cex.axis = 1, mar = c(2.5, 2.5, 1.6, 1.1), mgp = c(1.5, 0.5, 0), ...)

Arguments

a
the first entry of the vector passed to mar
b
the second entry of the vector passed to mar
brewer.n
parameter n passed to brewer.pal
brewer.name
parameters name passed to brewer.pal
cex.lab
passed on to par
cex.main
passed on to par
cex.axis
passed on to par
mar
passed on to par
mgp
passed on to par
...
other parameters passed on to par

Examples

Run this code
mypar()
plot(cars)
bigpar()
plot(cars)

Run the code above in your browser using DataLab