R/methods_plotTenXVars.R

setMethod(f = "plotTenXVars",
          signature = signature(geneName = "character"),

          definition = function(geneName){

            index <- which(meanDF$geneName == geneName)

            ggplot(data = NULL,
                   aes(x = 1:133, y = as.numeric(varDF[index, -(1:4)]),
                       color = c(rep("A", 69), rep("B", 64)))) +
              geom_point() +
              theme_classic() +
              xlab("Library") +
              ylab(paste0("Gene expression variance of ", geneName)) +
              theme(legend.position = "none")

          })
yavorska/TenXAnalysisPackage documentation built on May 29, 2019, 12:42 p.m.