Error in creating boxplot
0
0
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

R readRDS • 980 views
ADD COMMENT
0
Entering edit mode

please re-post question after editing to use publically available data (e.g. iris), then formatting as code.

ADD REPLY
0
Entering edit mode

In other words, your problem is not reproducible.

ADD REPLY

Login before adding your answer.

Traffic: 1611 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6