Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error of the statistical methods when using the irGSEA.halfvlnplot function #49

Open
yecotoo opened this issue Sep 4, 2024 · 0 comments

Comments

@yecotoo
Copy link

yecotoo commented Sep 4, 2024

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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant