plot_density: plot_density

Description Usage Arguments Value Author(s) Examples

View source: R/plot_density.R

Description

Plot smoothed density estimates for adjusted score

Usage

1
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

Author(s)

Yuanlong Hu

Examples

1
2
3
4
5
6
7
8
9
## 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")

## End(Not run)

immcp documentation built on Nov. 14, 2020, 5:09 p.m.