Learn R Programming

immcp (version 0.9.2)

plot_density: plot_density

Description

Plot smoothed density estimates for adjusted score

Usage

plot_density(result, drug, fill = "#6495ED")

Arguments

result

an object of class ScoreResult.

drug

a character of drug name.

fill

fill color.

Value

a ggplot

Examples

Run this code
# NOT RUN {
  data("drugSample")
  FP <- extrFP(disease_biomarker = drugSample$disease_biomarker,
               drug_target = drugSample$herb_target,
               geneset = "ImmGenTop150")
  res <- score_fp(FP, n=100)
  plot_density(res, drug="BAN_XIA_XIE_XIN_TANG")
# }

Run the code above in your browser using DataLab