newplot: newplot simple floating window setup a plot

View source: R/rutils.R

newplotR Documentation

newplot simple floating window setup a plot

Description

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

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

## Not run: 
 x <- rnorm(1000,mean=0,sd=1.0)
 plotprep()
 hist(x,breaks=30,main="",col=2)

## End(Not run)

haddonm/rutilsMH documentation built on July 21, 2023, 8:46 p.m.