gridextra Questions

2

Solved

A non-trivial ggplot challenge I compare the spatial distribution of a variable at two moments using maps with a fixed color scale - to show the actual change. It would be very nice to add the dist...
Doti asked 27/2, 2016 at 17:36

2

Solved

I am running quantile regressions for several independent variables separately (same dependent). I want to plot only the slope estimates over several quantiles of each variable in a single plot. ...
Biocatalyst asked 17/9, 2017 at 7:49

1

Solved

I have a use-case similar to the following where I create multiple plots and arrange them into some page layout using gridExtra to finally save it as a PDF with ggsave: p1 <- generate_ggplot1(....
Dariodariole asked 27/8, 2017 at 11:1

2

I am trying to create a multiple page PDF file from R which contains both data.frames and ggplots. I managed to do so transforming the data.frames into grobs and using the grid.arrange function. Th...
Lexicon asked 28/7, 2017 at 17:18

1

All -- There are several other questions on this exact topic, but none of them addresses the problem I am facing. Here is a simple snippet of code. Can anyone advise what the issue here is please? ...
Finding asked 12/3, 2017 at 1:48

1

Solved

I want create a multiplot of ggplot2 plots from a list using grid.arrange but arrange them by columns before doing it by rows. gg_list1 <- list(qplot(mpg, disp, data = mtcars), qplot(hp, wt, ...
Hydrobomb asked 29/11, 2016 at 23:2

1

Solved

I would like to plot a table with ggplot, however, I cannot seem to manage to lose the row.names. I have tried: row.names(cov_table_a)<-NULL # outside the plot row.names = FALSE # inside the ann...
Joslyn asked 24/11, 2016 at 14:21

1

Solved

I have a question similar to the one here, where OP aimed to merge the headers of the column present in the table horizontal merging. Here I wish to merge groups of cells which are vertically lined...
Yokoyokohama asked 27/9, 2016 at 13:48

1

Solved

How do you combine two ggplots g1 and g2 with one on the left and one on the right, 90° rotated (only the right one) ? I have already looked at grid and gridExtra package but I don't find my way t...
Ceramal asked 26/9, 2016 at 21:35

1

I would like to generate ggplot’s with gradient coloring, filling both plot panel and its background, as herein shown. As you can see the gradient background coloring encompasses both plot panel...
Garotte asked 22/9, 2016 at 7:9

1

Solved

I dont seem to be able to find a solution as to how to increase the space between two plots with grid.arrange. I find no clue as to how to proceed. I dont want to change the size of the plots or an...
Lourielouse asked 15/9, 2016 at 10:4

3

Solved

Is there a way to individually change the color of the text of a cell when using tableGrob and ggplot2? For instance in the code below it'd be great if the cell with 1 could be blue and the cell w...
Nervous asked 23/5, 2014 at 0:26

1

Solved

I have created an extensive theme to plot in ggplot similar to Five Thirty Eight. Without using ggthemes, how can I utilize linesGrob to draw a line above my footer that is centered and goes 85% of...
Strapless asked 29/8, 2016 at 21:33

1

Solved

I'm trying to create a multiple plot with the same x-axis but different y-axes, because I have values for two groups with different ranges. As I want to control the values of the axes (respectively...
Wolk asked 9/7, 2016 at 11:37

1

Solved

I tried adding a little summary table to a plot which I created with ggplot2::ggplot(). The table is added via gridExtra::tableGrob() to the saved ggplot object. My problem is that this seems to ...
Faunia asked 13/1, 2016 at 15:43

1

Solved

I'm looking to customise particular columns in my tableGrob, for this reproducible example I have chosen to look at customising justification. Say you have the following dataframe: df <- dat...
Cottager asked 6/4, 2016 at 14:23

4

Since I have updated to ggplot2 2.0.0, I cannot arrange charts propperly using gridExtra. The issue is that the faceted charts will get compressed while other will expand. The widths are basically ...
Whereunto asked 14/1, 2016 at 18:50

2

Solved

I have three plots and I try to combine them with grid.arrange. The last plot should have a smaller height than the first two plots and all the plots should have the same width. A working example:...
Lysol asked 24/3, 2016 at 10:52

3

Solved

I'm using gridExtra package of R. I'd like to align the numbers of the second column to the left, without changing the alignment of the names of first column. Is it possible? Thank you! library(gri...
Proudhon asked 23/1, 2016 at 11:36

2

Solved

I want a combined plot of two plots + their legend like this: library(ggplot2) library(grid) library(gridExtra) dsamp <- diamonds[sample(nrow(diamonds), 1000), ] p1 <- qplot(price, carat, ...
Evenings asked 15/1, 2016 at 15:30

1

Solved

I am trying to write a script that produces four different plots in a single image. Specifically, I want to recreate this graphic as closely as possible: My current script produces four plots si...
Ramiroramjet asked 10/12, 2015 at 21:7

2

Solved

I know that gridExtra has been updated. As a result, I'm left wondering how to change title sizes. This no longer works grid.arrange(a, b, c, d,ncol=2, nrow=2, main=textGrob("Title", gp=gpar(fo...
Doubtless asked 28/8, 2015 at 22:10

2

Solved

I'm using the code below: # Libs require(ggplot2); require(gridExtra); require(grid) # Generate separate charts chrts_list_scts <- list() # Data data("mtcars") # A chrts_list_scts$a <- gg...
Mraz asked 25/11, 2015 at 15:29

1

Solved

b <- ggplot(cars,aes(x=speed,y=dist))+geom_line() grid.arrange( b, plot(cars), ncol=1 ) gives me the following error Error in gList(list(grobs = list(list(x = 0.5, y = 0.5, width = 1, he...
Triennial asked 20/11, 2015 at 12:2

1

Solved

I am currently creating a table image using: SummaryTable <- data.frame( index, xa, xb, ya, yb, za, zb ) names(SummaryTable) <- c("Index", "Main X Sub A", "Main X Sub B", "Main...
Lamdin asked 19/10, 2015 at 12:41

© 2022 - 2025 — McMap. All rights reserved.