Warning message: Removed 23 rows containing non-finite values (stat_boxplot)

Hey everyone,

I have some issue with my boxplot. Everytime I run my code there is a warning message saying : Warning message: Removed 23 rows containing non-finite values (stat_boxplot).

Here is my script :

Evo_vol_BMS<-ggplot(BM_Sol, aes(x=as.factor(Cycle), y=volha, ylim=100))+

  • geom_boxplot(width=0.75, color="black", outlier.shape = NA, fill = c("#69F16F", "#B6C2B6"))+
  • labs(x="Cycle", y="Volume par hectare")+
  • theme(panel.background = element_rect(fill="Lavender"))+
  • scale_y_continuous(limits = c(0, 10))

Evo_vol_BMS

And :

str(BM_Sol)
tibble [1,849 x 10] (S3: tbl_df/tbl/data.frame)
NumPlac : chr [1:1849] "2" "2" "2" "2" ... Essence : chr [1:1849] "HET" "HET" "HET" "HET" ...
Cycle : num [1:1849] 1 1 1 1 1 1 1 2 2 2 ... Diam : num [1:1849] 5 5 5 5 5 6 12 7.5 5.5 5 ...
vol : num [1:1849] 0.0646 0.0646 0.0646 0.0646 0.0646 ... volha : num [1:1849] 0.514 0.514 0.514 0.514 0.514 ...
StadeD : chr [1:1849] "4" "2" "3" "3" ... StadeE : chr [1:1849] "2" "3" "3" "4" ...
Type : Factor w/ 2 levels "Bois mort au sol inf. 30 cm",..: 1 1 1 1 1 1 1 1 1 1 ... NumArbre: int [1:1849] 1 2 3 4 5 6 7 8 9 10 ...

I don't really know what to do ... Do you have any advice ?
Thanks a lot

What is the output of summary(BM_Sol)?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.