Skip to contents

newplot is a bare-bones setup routine to generate a plot in RStudio using a floating window. If you want to alter the default par settings then you can use either setplot() to get suitable syntax or, more simply, use parsyn() which only gives a template for the par syntax. DEPRECATED, USE plotprep() and parset() INSTEAD.

Usage

newplot(width = 6, height = 3.6, newdev = TRUE)

Arguments

width

defaults to 6 inches = 15.24cm - width of plot

height

defaults to 3.6 inches = 9.144cm - height of plot

newdev

reuse a previously defined graphics device or make a new one, defaults to TRUE

Value

Checks for and sets up a graphics device and sets the default plotting par values. This changes the current plotting options!

Examples

if (FALSE) {
 x <- rnorm(1000,mean=0,sd=1.0)
 plotprep()
 hist(x,breaks=30,main="",col=2)
}