ggpubr Questions
3
Solved
I have a list of ggplots that may be too complex to arrange using facet_wrap. All plots must share the same legend and should be arranged in a grid. Each column of the grid needs a different title,...
2
I am trying to create a waffle plot with a total of 9 plots in one. However, no matter what I try, I am not able to reduce the spacing between the 3 columns in the plot. This is the plot I have now...
Dutcher asked 22/7, 2021 at 5:48
3
I'm trying to create a panel of plots using ggarrange. I'm using the "labels" argument to create a title for each one, but the positioning is coming out differently for each plot dependin...
3
I am using R Notebooks and have a chunk with some code for arranged histograms. When I use a common legend it produces an extra empty plot, which looks terrible in the rendered html file. This phen...
Sherwin asked 6/1, 2018 at 22:52
3
Solved
Is there a way to first change the facet label from 1:3 to something like c(good, bad, ugly). Also, i would like to add R2 value to each of the facet. Below is my code- i tried a few things but did...
Animus asked 10/2, 2020 at 1:36
2
Solved
Utilizing the example package code in ggpubr, the ggdotchart function does not create separate segments as is shown in the example, instead there is only a single segment, though the dots seem to b...
4
Solved
I generate a list of ggplot objects inside a loop as follows:
myPlots = list()
for(i in 1:length(maturities)){
myPlots[[i]] <- ggplot(deltaIR.df, aes(sample = deltaIR.df[,i])) +
stat_qq() + ...
1
Solved
I've found using stat_regline_equation (with ggscatter) to be really useful for quickly adding regression equations to plots, especially when I having multiple regressions on multiple facets. Howev...
1
Solved
I have one data frame dt with data about dive behavior and at three different areas BA, MI, FA.
I want to add main title to my multiple plots (ba, mi, fa) using ggarrange, but I didn't find somethi...
1
Solved
I there!
I want to include a label with subscript in geom_bracket in ggplot2. I tried in different ways, but no one worked (attempts in the comments):
library(ggplot2)
ggplot(data = mtcars, aes(x =...
1
Here is my issue:
I am looping around my data.
For each iteration of the loop, I create 3 plots that I organize on the same page, and I want to have one page per iteration stored in the same pdf fi...
3
Solved
What is the best (easiest) approach to add neatly to a ggplot plot the regression equation, the R2, and the p-value (for the equation)? Ideally it should be compatible with groups and faceting.
Th...
0
I work with Rmarkdown and I am creating many figures composed of different ggplot2 charts, using ggarrange. The problem is that I am not able to set different sizes for figures inside a single chun...
1
Solved
How do I edit a common legend title (make it bold font and enlarge the font size) using ggarrange?
Based on the six plots I have (p1 to p6), I thought the following would work:
p6 <- p6 + theme(...
2
Solved
I am currently plotting data using the ggpubr package in R (based on ggplot2). When I plot the means of two conditions including standard errors, the y-axis should be limited from 1 to 7, which I i...
2
Solved
I'm working with 4 different plots and I'm using ggarrange() from the ggpubr-package to put them in a single plot. I've prepared an example:
library(ggpubr)
library(ggplot2)
p1 <- ggplot(iris,...
1
Solved
I have a dataframe with several variables that I wish to label and then use in several ggplots. I have applied labels using the labeller package with the following code.
library(tidyverse)
librar...
1
Solved
I have a dataframe df with the following data. I want to plot the logCPM expression of the gene between two groups A and B.
Samples Type GeneA
Sample1 B 14.82995162
Sample2 B 12.90512275
Sample3 B...
Idalia asked 3/10, 2018 at 15:13
1
I need to combine a map, which represents an archaeological site, with an XY ggplot chart of different archaeological objects. The map is in a tiff file and must respect its proportion.
First, th...
1
I have been struggling to make a change on the default point shape that comes in the output plot within the function fviz_pca from the R package FactoExtra.
The plot appears with a certain order*...
1
Solved
How can I change the font size of stat_compare_means on the plot below? I.e, change the "Kruskal-Wallis, p = 1.5e-09" and the other p-values font size? I would like to use a smaller font size than ...
Chutney asked 31/1, 2018 at 20:1
1
Solved
I'm new to R and trying to show graphs and images on the same page with R.
I tried to use library(ggpubr) and ggarrange() function.
to import the images I used library(png) and readPNG() to import...
1
Solved
I am trying to add significance levels to my boxplots in the form of asterisks using ggplot2 and the ggpubr package, but I have many comparisons and I only want to show the significant ones.
I try...
1
© 2022 - 2025 — McMap. All rights reserved.