Description Usage Arguments Usage notes Examples
Plot subject allocations
1 2 3 4 5 6 7 8 9 10 | allocationPlot(
subjectData,
dose = Dose,
tox = Toxicity,
doseGrid,
toxCategories = list(),
toxData = NA,
toxVar = NA,
recommendedDose = NA
)
|
subjectData |
The tibble containing subject level dose allocations and toxicity status |
dose |
the name of the column in |
tox |
the name of the column in |
doseGrid |
the values to appear along the dose axis. Can be omitted: if so, only those
values that exist in |
toxCategories |
a list containing the labels of the toxicity categories that will appear
in the legend. Can be omitted. If omitted, sensible defaults are derived, based on the
mighest value of |
toxData |
the name of the tibble containing the poasterior estimates of toxicity. See Usage notes below. |
toxVar |
the name of the column in |
recommendedDose |
Optional. The value of |
toxData
and toxVar
must either both be omitted or both be present.
The toxData
tibble should contain columns named dose
and toxVar
.
Other columns are ignored. It should contain one row for each value of dose
in
subjectData
1 2 3 4 5 6 7 | #Basic usage
data("oQuigleyPatientData")
allocationPlot(oQuigleyPatientData, doseGrid=1:6)
#More advanced
data("oQuigleyPosteriorShort")
toxData <- oQuigleyPosteriorShort %>% tidy() %>% augmentOQuigleyData() %>% createDoseSummary()
allocationPlot(oQuigleyPatientData, doseGrid=1:6, toxData=toxData, toxVar=Mean, recommendedDose=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.