Gviz plot combined with multiple ggplot2 plots
0
2
Entering edit mode
@christianaichmueller-13859
Last seen 7.3 years ago

Dear fellow R-enthusiasts,

I am struggling with the following problem:

I have a Gviz plot and two ggplot2-plots. It is no problem to store the ggplot2-plots into an objects, like "my_plot <- ggplot(data = x) + geom..." and call it later, but to do the same with my Gviz plot, saying "gviz_plot <- plotTracks(list(itrack, gtrack, hltrack))", does not work. My goal is to plot all three plots at the same time using the R-function "layout(matrix(c(1,1,2,3), 2,2, by.row = TRUE))" and save them as PDF. Whenever I plot, the Gviz plot appears on a separate page.

How can I change this behaviour?

Thanks  and best wishes,

Chris
 

gviz gviz-package ggplot2 • 2.1k views
ADD COMMENT

Login before adding your answer.

Traffic: 540 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