plot_median_effect: Generate plot for the fit from median-effect model

Description Usage Arguments

View source: R/drexplorer_IAI.R

Description

Generate plot for the fit from median-effect model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_median_effect(
  medianEffect,
  type = c("medianEffect", "doseResponseCurve", "contour"),
  contour.level = (1:9)/10,
  logd = FALSE,
  cex.legend = 1,
  align = TRUE,
  ylim = c(0, 1),
  legend.position = "topright"
)

Arguments

medianEffect

the fitted result by fit_median_efect().

type

type of plot, options are from c('medianEffect', 'doseResponseCurve', 'contour').

contour.level

levels (between 0 and 1 representing different response values) to draw contour plot.

logd

whether to plot logd in Dose-response curve; only effective if type=='doseResponseCurve'.

cex.legend

cex for the legend text'.

align

whether to align dose range. Imagine that 2 drugs are mixed in fixed ratio, the doses in one drug will have low doses that the other drug and mixture do not have which some biologists deams as a waste of graphic region. An easy fix is to truncate xlim. This is only only effective if type=='doseResponseCurve'.

ylim

limits on y axis. Default is set between 0 and 1.

legend.position

legend position passed to legend() function.


lshen1/drexplorer2 documentation built on June 2, 2020, 9:27 p.m.