DensityView {MAGeCKFlute} | R Documentation |
Plot the density of gene beta scores in two samples.
DensityView(beta, samples = NULL, main = NULL, xlab = "Beta Score", filename = NULL, width = 5, height = 4, ...)
beta |
Data frame, including |
samples |
Character, specifying sample names in |
main |
As in 'plot'. |
xlab |
As in 'plot'. |
filename |
Figure file name to create on disk. Default filename="NULL", which means don't save the figure on disk. |
width |
As in ggsave. |
height |
As in ggsave. |
... |
Other available parameters in ggsave. |
An object created by ggplot
, which can be assigned and further customized.
Wubing Zhang
data(MLE_Data) # Read beta score from gene summary table in MAGeCK MLE results dd = ReadBeta(MLE_Data, organism="hsa") DensityView(dd, samples=c("D7_R1", "D7_R2", "PLX7_R1", "PLX7_R2")) #or DensityView(dd[, c("D7_R1", "D7_R2", "PLX7_R1", "PLX7_R2")])