> X11()
Other options are openlook() and motif().
To close the graphics window:
> dev.off()
The following commands create a simple scatterplot; the semicolon is used to put more than one command on the line.
> X11(); plot(1:10,1:10)
Arguments which add titles or modify the appearance of the plot can be included in the function:
> plot(1:10,1:10,type="l",main="Straight line")
> hist(rnorm(100), main="Histogram of 100 random normal data points")