Gviz plot combined with multiple ggplot2 plots
Entering edit mode
Last seen 6.8 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,


gviz gviz-package ggplot2 • 1.9k views

Login before adding your answer.

Traffic: 475 users visited in the last hour
Help About
Access RSS

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

Powered by the version 2.3.6