Questions tagged [ggboxplot]
13 questions
2
votes
1 answer
How to reorder only specific names on x-axis of boxplot in R?
I have a dataframe test like below:
dput(test)
structure(list(Groups = c("Group1", "Group2", "Group3", "Group4",
"Group5", "Group6", "Group7", "Group8", "Group9", "Group10",
"Group11", "Group12", "Group13", "Group14", "Group15", "Group16",…

beginner
- 1,059
- 8
- 23
2
votes
3 answers
How to automate dunn_test and ggboxplot?
I'm working on a dataframe (called df) looking something like this (shortened here for practical…

sophiethomas
- 63
- 6
1
vote
1 answer
ggplot2 grouped boxplot doesn't separate groups for different iterations
This is my first time posting here after years of being an anonymous reader. Please be kind to me in case the format for posting questions is wrong.
My dataset involves storing iterations and particles and associated llh and se values.
llh…

SUL
- 13
- 4
1
vote
2 answers
Add custom tick on and a label y-axis with custom colour using ggboxplot()
I have a boxplot that I've created using ggboxplot. On it I have a horizontal line at the mark y=50. I want to be able to add a label at y=50, x=0 saying "50" in dark green to match the line. Currently the label overlaps the axis line and the…

Melanie Baker
- 449
- 1
- 13
1
vote
1 answer
use raw string, instead of escape string, in ggpub::ggboxplot of R
How to use the raw string (such as len/s) in the colnames in ggpubr::ggboxplot in R? It seems due to purrr::map
library(ggpubr)
data("ToothGrowth")
df <- ToothGrowth
colnames(df) <- c("len/s", "supp", "dose%sd")
ggboxplot(df, x = "dose%sd", y =…

Zhilong Jia
- 2,329
- 1
- 22
- 34
0
votes
0 answers
R Studio, ggplot2: Creating a two year boxplot graph with mean values
I am generating a two-year boxplot with mean values, however when plotting them the mean values are grouped into a unique different range as shown in the image (the means are displayed with white asterisks).I attach the code used.
Does anyone know…

Dani Z
- 1
- 1
0
votes
0 answers
How can I combine two box plots with different dataframes into one graph with secondary axis in R?
##Individual plots
par(mfrow = c(1,2))
dat <- data.frame(years = rep(2011:2020, each = 9), x = sample(200:325, 10*9 ,replace = T))
boxplot(dat$x ~ dat$year, ylim = c(200, 350))
#reference data
ref.dat <- data.frame(years = rep(2011:2020), x…
0
votes
0 answers
Having trouble adding p values to grouped boxplots
I am having trouble adding the p values for the three comparisons in the grouped boxplots (Acini-cr_POPF, Fibrosis-cr_POPF, Fat-cr_POPF). I tried using stat_compare_means, stat_p_value, nothing works. Then, i used facet.by in order to procude the…
0
votes
1 answer
ggplot scatterplot for 2 categorical variables, 1 categorical variable by color
I like the ability to easily separate data into different series using ggboxplot. The x-axis labels can remain easy to read while a 2nd categorical variable is shown via adjacent colored series.
p <- ggboxplot(df_dummy, x="Trt_Amend",…

LabRat01010
- 85
- 1
- 8
0
votes
0 answers
ggboxplot: Error in `purrr::pmap()`: Caused by error in `if (fill %in% names(data) & is.null(add.params$fill)) ...`:?
I am trying to use fill function in ggboxplot of ggpubr package. But it throws an error:
code used.
library(ggpubr)
data("ToothGrowth")
df <- ToothGrowth
ggboxplot(df, x = "dose", y = "len", fill= c("red", "navy", "green"))
Throws an error:
Error…
user2110417
0
votes
0 answers
ggboxplot {ggpubr} - what does it represent exactly?
I want to use ggpubr's ggboxplot but the documentation is not very precise.
It simply stays
Create a box plot with points. Box plots display a group of numerical data through their quartiles.
I understand that a boxplot by definition uses the 25th…

Tamara
- 21
- 2
-3
votes
1 answer
Multiple BoxPlot
I want to plot a boxplot. I really did some research before raise a question at here. At first I tried in Excel but it caused laggy due to the data is so large. So, I decided to R.
My data consist of 180 of 100x2 data frame. So, it has 180000…

Gambit
- 77
- 1
- 11