Multiple plots in different windows
1
0
Entering edit mode
Matan G. ▴ 60
@matan-g-22483
Last seen 3.3 years ago

Hi,

My goal is to open multiple plots in different windows. I'm using the function "quartz()" before each plotting command. This, opens a window for each plot, but in the fourth plot it overwrites the first one instead of showing it in the new window that was opened for it.

Does anyone know how to solve it? or even has a more elegant solution for multiple plotting?

Best Matan

plotting • 1.5k views
ADD COMMENT
0
Entering edit mode

This isn't a DESeq2 question per se, as it doesn't involve DESeq2 functions, so I'm removing that tag.

ADD REPLY
0
Entering edit mode

Ok sure no problem sorry for that. Just trying to plot the DESeq2 vignette suggestions plots.

ADD REPLY
0
Entering edit mode
Kevin Blighe ★ 4.0k
@kevin
Last seen 20 days ago
Republic of Ireland

There are different ways of doing this, depending on the nature of the plots that you are generating.

  • par(mfrow(...))
  • cowplot
  • grid / gridExtra
  • egg

Take a look here: https://cran.r-project.org/web/packages/egg/vignettes/Ecosystem.html

Kevin

ADD COMMENT
0
Entering edit mode

Hi Kevin,

Thanks for replying. Do these methods work for plots rather than ggplot generated plots? or a mixture of plots (ie, ggplot and other packages)?

For example: I'm trying to assign a plot that was generated by the function "plotMA" to a variable in order to combine it with another ggplot for visualization and it doesn't work for me.

Best

ADD REPLY

Login before adding your answer.

Traffic: 847 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6