Lorenzo Rigamonti
Lorenzo Rigamonti

Reputation: 1775

How to create multiple graph windows in R

By default running an R code containing multiple plot instructions, such as:

charts.RollingPerformance(ManagerRet, width = 63, colorset = bluefocus)
chart.Histogram(managers[,1,drop=F], main = "Density", methods = c("add.density", "add.normal"))

once the first plot is created and a new line code is run, a second plot substitutes the first graph in the window before containing the first graph.

Therefore ow to create multiple graph windows in R?

Upvotes: 2

Views: 1400

Answers (1)

James
James

Reputation: 66834

You can create a new plot window with dev.new(), or alternatively windows(), win.graph(), x11() or X11().

Upvotes: 2

Related Questions