Transformation introduced infinite values in continuous y-axis

2k views Asked by At

I want to set my y-axis to log-scale to make the visualization better readable.

Before doing so my data looks correctly displayed . without log-scale

plot_bar(ent40, "phylum", fill="kingdom", facet_grid=~sampleID)+
geom_col(aes(fill=kingdom), position="stack")+
  scale_y_continuous(labels = comma_format(big.mark = ".", decimal.mark = ","))

When I change it to log-scale on y-axis I get the following error messages:

Warning messages:
1: Transformation introduced infinite values in continuous y-axis 
2: Transformation introduced infinite values in continuous y-axis 
3: Removed 119 rows containing missing values (geom_bar). 
4: Removed 119 rows containing missing values (geom_col).

On top my plot's scale gets completely out of proportion.

after transformation

0

There are 0 answers