Browse code

Allowed expansion on heatmap

Shians authored on 14/07/2023 06:00:10
Showing 2 changed files

... ...
@@ -172,8 +172,7 @@ setMethod("plot_gene", signature(x = "ModBamResult", gene = "character"),
172 172
             subsample = heatmap_subsample
173 173
         ) +
174 174
             ggplot2::coord_cartesian(
175
-                xlim = c(plot_left, plot_right),
176
-                expand = FALSE
175
+                xlim = c(plot_left, plot_right)
177 176
             )
178 177
 
179 178
         p_out <- stack_plots(p_out, ggrastr::rasterise(p_heatmap))
... ...
@@ -309,8 +309,7 @@ setMethod("plot_region",
309 309
     if (heatmap) {
310 310
         p_heatmap <- plot_region_heatmap(x, chr, start, end, window_prop = window_prop, subsample = heatmap_subsample) +
311 311
             ggplot2::coord_cartesian(
312
-                xlim = xlim,
313
-                expand = FALSE
312
+                xlim = xlim
314 313
             )
315 314
 
316 315