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,...
Prindle asked 21/2, 2020 at 23:40

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...
Isosteric asked 3/5, 2021 at 22:37

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...
Valse asked 14/11, 2018 at 20:49

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() + ...
Chicle asked 26/9, 2019 at 20:27

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...
Monodrama asked 12/2, 2021 at 18:15

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...
Plasterboard asked 13/1, 2021 at 1:20

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 =...
Digest asked 23/10, 2020 at 12:37

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...
Moline asked 8/11, 2018 at 11:47

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...
Anglofrench asked 17/4, 2020 at 7:22

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...
Shaeshaef asked 14/4, 2020 at 2:6

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(...
Trilateration asked 3/12, 2019 at 17:57

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...
Sicard asked 16/7, 2019 at 20:40

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,...
Teyde asked 5/7, 2019 at 10:6

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...
Balloon asked 11/3, 2019 at 23:55

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...
Simonesimoneau asked 11/4, 2018 at 14:45

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*...
Incomputable asked 21/5, 2018 at 12:57

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...
Jettiejettison asked 17/12, 2017 at 14:54

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...
Restrain asked 3/8, 2017 at 6:55
1

© 2022 - 2025 — McMap. All rights reserved.