Log scales in R

For the graphs I'm trying to generate, I want to apply the scale to the y axis.

Source

bxp(confSum, main="Mean Coverage Per Exon for Hiseq", ylab="Fold Coverage", las=2, cex.lab=1, cex.axis=0.7,xaxt='n', ann=FALSE) 

which works fine, but not magazine-wide.

Based on some information on the Internet, I added the log="y" code to the code, and the generated pdf file just became empty and there was nothing on it ...

I made a mistake somewhere? .. How do I fix it for the log scale?

Thanks in advance.

+6
source share
2 answers
 > boxplot(decrease ~ treatment, data = OrchardSprays, + log = "y", col = "bisque") 
+3
source

I had the same problem. I realized that this was because my dataset had zero values, so I replaced them with NA, and it worked. This is because the boxplot function cannot handle the construction of 0 values ​​in the log scale (converges to infinity).

+2
source

Source: https://habr.com/ru/post/947785/


All Articles