You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
when I have subgroups in my data and I want to have black data points, the jitter function does not draw the datapoints in alignment with the bar. Any suggestions how to solve this?
best,
Alex
ggbarplot(data, x = "cond", y = "FC", orientation = "vert",
add = c("mean_sd", "jitter"),
color = "black", palette = c("#807F7F", "#BF504D", "#0E71B4"), fill = "supp",
position = position_dodge(0.9),
sort.by.groups = TRUE)
The text was updated successfully, but these errors were encountered:
# Change bars fill color by groups# You need to change also point shapes by groups
library(ggpubr)
ggbarplot(
ToothGrowth, x="dose", y="len",
add= c("mean_sd", "jitter"),
add.params=list(shape="supp"),
fill="supp", palette= c("#807F7F", "#BF504D"),
position= position_dodge(0.8)
)
Hi,
when I have subgroups in my data and I want to have black data points, the jitter function does not draw the datapoints in alignment with the bar. Any suggestions how to solve this?
best,
Alex
ggbarplot(data, x = "cond", y = "FC", orientation = "vert",
add = c("mean_sd", "jitter"),
color = "black", palette = c("#807F7F", "#BF504D", "#0E71B4"), fill = "supp",
position = position_dodge(0.9),
sort.by.groups = TRUE)
The text was updated successfully, but these errors were encountered: