Hi everyone !
On an actual dataset (that comports some point y = 0) where the values can be far from each other (especially for a category) I would like to represent them on a log-transformed axis (log10).
I correctly work with the next code :
However, the point with y=0 are not display..
Can anyone already have the same issue ?
Is it because this function scale_y_continuous(trans) not allowed the 0 (due to the fact that log(0) is not defined) ?
When I directly transformed my data and plot I agree, as 0 is not defined it is not display.
But with the axis transformation I expected that only the presentation of my data was changed and so the 0 was not affected and could be correctly plot.
I clearly see the differences on the y axis value between the log transformation of my data (values : -10 -> 0) and the transformation of the axis (values : 0.00005 -> 0.2).
Where would you expect it to be plotted?
Zero is near 10e-10 and therefore it should be plotted near -10,
but also near 10e-20 and therefore ...
Use a different transformation e.g log(1+x)
I tried a log(1+x) transformation. Here the 0 were plot but I loose the interest of a data transformation because the plot looked very similar to the one without transformation, the data were squashed due to the high values.
The data transformation by log(0.001 +x) worked ! Thank you !
By I think the data are tricky anyway to correctly to visualize because indeed the majority is very small and the others are very large.
Thanks everyone !