Entering edit mode
2.9 years ago
Hello,
I want to create a boxplot and unfortunately I am getting an error and warning message;
Error in readRDS(nsInfoFilePath) : error reading from connection
In addition: Warning messages:
1: Removed 132 rows containing non-finite values (stat_boxplot).
2: Removed 132 rows containing non-finite values (stat_boxplot).
3: In readRDS(nsInfoFilePath) : error reading the file
and I am using the following codes;
png(filename="Kruskal_wallis_test.png", width=1100, height=500)
P <- ggplot(data=mydf,
aes(x=genotyping, y=value, fill=Variable))+
stat_boxplot(geom = "errorbar")+geom_boxplot(outlier.shape = NA)+
facet_wrap(~SNPs,nrow=1)+
theme_bw()+
theme(axis.text=element_text(size=12),axis.title=element_text(size=16),plot.title=element_text(size=20)) +
theme(strip.text = element_text(size=14))+
scale_fill_viridis(discrete = TRUE) +
guides(fill=guide_legend(title="Variable"))+
stat_pvalue_manual(df_wilcox,color ="Variable",step.group.by="Variable",tip.length = 0,step.increase = 0.02)
P
dev.off()
If anyone knows, kindly help me to figure it out. I would be grateful.
Thanks
please re-post question after editing to use publically available data (e.g. iris), then formatting as code.
In other words, your problem is not reproducible.