For the plots I'm trying to generate, I want to apply log scale to the y axis.
The original code is
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 in log scale.
Based on some information online, I added log="y"
to the code, and the pdf it produces just become empty with nothing on it...
Did I make a mistake somewhere?.. How should I fix it for log scale?
Thanks in advance.
> boxplot(decrease ~ treatment, data = OrchardSprays,
+ log = "y", col = "bisque")
I had the same issue. I figured out it was because my dataset had some zero values, so I substituted them for NA and it worked out. It's because boxplot function can't handle plotting the 0 values in the log scale (converges to infinite).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With