Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get two windows with different plots

Tags:

plot

r

window

When we have a window with plots, is there a way to tell R to display a new plot in a new window?

like image 742
sbg Avatar asked Aug 02 '11 17:08

sbg


People also ask

How do I display multiple plots in MATLAB?

To create a plot that spans multiple rows or columns, specify the span argument when you call nexttile . For example, create a 2-by-2 layout. Plot into the first two tiles. Then create a plot that spans one row and two columns.

Which function is used to plot multiple graphs in two different views of the same window?

Multiple Plots using subplot () Function A subplot () function is a wrapper function which allows the programmer to plot more than one graph in a single figure by just calling it once.

Can we merge two plots?

Combine multiple ggplots using ggarrange() the line plot (lp) will live in the first row and spans over two columns. the box plot (bxp) and the dot plot (dp) will be first arranged and will live in the second row with two different columns.


1 Answers

plot(1:1) dev.new() plot(2,2) dev.set(dev.prev()) # go back to first title(main="test dev 1")  dev.set(dev.next()) # go to second title(main="test dev 2") 
like image 53
IRTFM Avatar answered Oct 18 '22 04:10

IRTFM