Skip to content

Commit 17038d3

Browse files
committed
Update AS_boxplot.R
1 parent 484c9cb commit 17038d3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

R/AS_boxplot.R

+8-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#' @param X_text X axis text size
1717
#' @param Y_lab y axis text size
1818
#' @param T_size Title size
19+
#' @param size outline size
1920
#'
2021
#' @return ggboxplot
2122
#' @export
@@ -33,6 +34,7 @@ AS_boxplot<-function(data,
3334
label_size = 2.88,
3435
step_increase = 0.05,
3536
width = 0.3,
37+
size = 0.5,
3638
fig_width = NA,
3739
fig_height = NA,
3840
X_text = 10,
@@ -118,6 +120,7 @@ AS_boxplot<-function(data,
118120
color = "Group",
119121
palette = ckey,
120122
add = "jitter",
123+
size = size,
121124
order = order,
122125
width = width)+
123126
ggplot2::scale_y_continuous(label=ecoflux::scientific_10x)+
@@ -155,6 +158,7 @@ AS_boxplot<-function(data,
155158
y = colnames(data[["Data_renamed"]])[number],
156159
color = "Group",
157160
palette = ckey,
161+
size = size,
158162
add = "jitter",
159163
order = order,
160164
width = width)+
@@ -234,6 +238,7 @@ AS_boxplot<-function(data,
234238
y = colnames(data[["Data_renamed"]])[number],
235239
color = "Group",
236240
palette = ckey,
241+
size = size,
237242
add = "jitter",
238243
order = order,
239244
width = width)+
@@ -254,9 +259,8 @@ AS_boxplot<-function(data,
254259
vjust=.5), # X axis text
255260
axis.text.y=ggplot2::element_text(size=Y_lab),
256261
legend.position = legend_position)+
257-
ggpubr::stat_pvalue_manual(stat.test, y.position = 1.05 * max(data[["Data_renamed"]][,number]),
258-
step.increase = step_increase,
259-
label = "p.adj.signif",
262+
ggpubr::stat_pvalue_manual(stat.test,
263+
y.position = 1.05 * max(data[["Data_renamed"]][,number]), label = "p.adj.signif",
260264
size = 3.5,
261265
vjust = 0.05,
262266
label.size = label_size,
@@ -271,6 +275,7 @@ AS_boxplot<-function(data,
271275
y = colnames(data[["Data_renamed"]])[number],
272276
color = "Group",
273277
palette = ckey,
278+
size = size,
274279
add = "jitter",
275280
order = order,
276281
width = width)+

0 commit comments

Comments
 (0)