plotDSEA {epos} | R Documentation |
Plotting functions for DSEA lists
Description
Plotting functions for DSEA lists
Usage
plotDSEA(dsepso, dsesso, dsepi, dsepisem, dsfenics, dsspace, k)
Arguments
dsepso |
list with enrichment for EpSO |
dsesso |
list with enrichment for ESSO |
dsepi |
list with enrichment for EPILONT |
dsepisem |
list with enrichment for EPISEM |
dsfenics |
list with enrichment for FENICS |
dsspace |
list with enrichment for the combined ranked list |
k |
numeric value for the length to be plotted |
Value
the plot object
Examples
utils::data(rawDrugNamesCoOcEpSO, package="epos")
utils::data(rawDrugNamesCoOcESSO, package="epos")
utils::data(rawDrugNamesCoOcEPILONT, package="epos")
utils::data(rawDrugNamesCoOcEPISEM, package="epos")
utils::data(rawDrugNamesCoOcFENICS, package="epos")
atchashda <-
readAtcMapIntoHashMapDrugNamesAtcCodes(
system.file("extdata", "db-atc.map", package = "epos"), "\t")
epso <- rawDrugNamesCoOcEpSO
neuroepso <- filterNeuroDrugs(epso, atchashda)
esso <- rawDrugNamesCoOcESSO
neuroesso <- filterNeuroDrugs(esso, atchashda)
epi <- rawDrugNamesCoOcEPILONT
neuroepi <- filterNeuroDrugs(epi, atchashda)
episem <- rawDrugNamesCoOcEPISEM
neuroepisem <- filterNeuroDrugs(episem, atchashda)
fenics <- rawDrugNamesCoOcFENICS
neurofenics <- filterNeuroDrugs(fenics, atchashda)
mx <- max(
c(length(neuroepso), length(neuroesso), length(neuroepi),
length(neuroepisem), length(neurofenics)))
dneuro <-
data.frame(EpSO = c(neuroepso, rep("", (mx-length(neuroepso)))),
ESSO = c(neuroesso, rep("", (mx-length(neuroesso)))),
EPILONT = c(neuroepi, rep("", (mx-length(neuroepi)))),
EPISEM = c(neuroepisem, rep("", (mx-length(neuroepisem)))),
FENICS = c(neurofenics, rep("", (mx-length(neurofenics)))))
dneuromaxk <- TopKLists::calculate.maxK(dneuro, L=5, d=5, v=5)
neurospace <- as.character(dneuromaxk$topkspace)
dsepso <- calcDSEA(neuroepso, mx)
dsesso <- calcDSEA(neuroesso, mx)
dsepi <- calcDSEA(neuroepi, mx)
dsepisem <- calcDSEA(neuroepisem, mx)
dsfenics <- calcDSEA(neurofenics, mx)
dsspace <- calcDSEA (neurospace, mx)
p <- plotDSEA(dsepso, dsesso, dsepi, dsepisem, dsfenics, dsspace, dneuromaxk$maxK)
## Not run:
ggplot2::ggsave("dsea.png",
p <- plotDSEA(dsepso, dsesso, dsepi, dsepisem, dsfenics, dsspace,
dneuromaxk$maxK), width=480, height=320, units = "mm", dpi = 300)
## End(Not run)
[Package epos version 1.1 Index]