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...
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.
...
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(....
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...
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?
...
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, ...
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...
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...
1
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...
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...
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...
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...
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 ...
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...
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 ...
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:...
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...
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, ...
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...
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...
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...
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...
© 2022 - 2025 — McMap. All rights reserved.