This creates a Q-Q plot of the library sizes of the AnyHermesData object.
draw_libsize_qq(object, color = "grey", linetype = "dashed")
(AnyHermesData
)
input.
(string
)
color of Q-Q line.
(string
)
line type of Q-Q line.
The ggplot
object with the Q-Q Plot.
result <- hermes_data
draw_libsize_qq(result)
draw_libsize_qq(result, color = "blue", linetype = "solid")
# We can also add sample names as labels.
library(ggrepel)
draw_libsize_qq(result) + geom_text_repel(label = colnames(result), stat = "qq")