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! I would like to know about what statistical methods are used when using the irGSEA.halfvlnplot function to draw? The violin diagram I drew with the geom_half_violin function is not the same as this method, here's my code, thanks!
ggplot()+
geom_half_violin(
data = df %>% filter(sample=="normal"),
aes(x = cell,y = value),colour=NA,fill="#197EC099",side = "l"
)+
geom_half_violin(
data = df %>% filter(sample=="tumor"),
aes(x = cell,y = value),colour=NA,fill="#FED43999",side = "r"
)+
mytheme+
theme_bw()+
ylab("Value")+xlab("Type")+
geom_point(data = df,aes(x=cell,y = value,fill=sample),
stat = 'summary',fun=mean,
position = position_dodge(width = 0.7))+
stat_summary(data = df,aes(x=cell,y = value,fill=sample),
fun.min = function(x){quantile(x)[2]},
fun.max = function(x){quantile(x)[4]},
geom = 'errorbar',color='black',
width=0.01,size=0.5,
position = position_dodge(width = 0.7))+
stat_compare_means(data = df,aes(x=cell,y = value,fill=sample),label = 'p.signif')
The text was updated successfully, but these errors were encountered:
Hi! I would like to know about what statistical methods are used when using the irGSEA.halfvlnplot function to draw? The violin diagram I drew with the geom_half_violin function is not the same as this method, here's my code, thanks!
ggplot()+
geom_half_violin(
data = df %>% filter(sample=="normal"),
aes(x = cell,y = value),colour=NA,fill="#197EC099",side = "l"
)+
geom_half_violin(
data = df %>% filter(sample=="tumor"),
aes(x = cell,y = value),colour=NA,fill="#FED43999",side = "r"
)+
mytheme+
theme_bw()+
ylab("Value")+xlab("Type")+
geom_point(data = df,aes(x=cell,y = value,fill=sample),
stat = 'summary',fun=mean,
position = position_dodge(width = 0.7))+
stat_summary(data = df,aes(x=cell,y = value,fill=sample),
fun.min = function(x){quantile(x)[2]},
fun.max = function(x){quantile(x)[4]},
geom = 'errorbar',color='black',
width=0.01,size=0.5,
position = position_dodge(width = 0.7))+
stat_compare_means(data = df,aes(x=cell,y = value,fill=sample),label = 'p.signif')
The text was updated successfully, but these errors were encountered: