boxplot(log2(paired_counts 1), las = 2, outline = F, col = c("red", "blue"))
how to solve this, does any body know? i'm really new to R
you can reproduce by below code
a <- c("TCGA-38-4625-01A","TCGA-38-4625-11A")
b <- data.frame(10120,990)
colnames(b) <- a
boxplot(log2(b 1), las = 2, outline = F, col = c("red", "blue"))
CodePudding user response:
Set a larger bottom (first) margin and plot again, e.g.:
par(mar = c(9, 3, 2, 1)) # bottom, left, top, right
boxplot(log2(paired_counts 1), las = 2, outline = F, col = c("red", "blue"))
Use a higher value than 9 if the x labels are still not complete.
CodePudding user response:
This is a quick solution. Better go to ggplot2, let me know if you need help with it
a <- c("TCGA-38-4625-01A","TCGA-38-4625-11A")
b <- data.frame(10120,990)
colnames(b) <- a
par(cex.axis=0.5)
boxplot(log2(b 1), las = 2, outline = F, col = c("red", "blue"))
Created on 2022-08-02 by the reprex package (v2.0.1)