newplot | R Documentation |
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
newplot(width = 6, height = 3.6, newdev = TRUE)
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 |
Checks for and sets up a graphics device and sets the default plotting par values. This changes the current plotting options!
## Not run:
x <- rnorm(1000,mean=0,sd=1.0)
plotprep()
hist(x,breaks=30,main="",col=2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.