Description Usage Arguments Value Usage notes Examples
The graph indicates toxicity status using colur and, optionally, indicates cohort boundaries and the MTD at the end of the trial
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
d |
a tibble containing subject numbers, dose alloactions and toxicity status. Usually of class "ocrmSubjects" or "crmSubjects". |
x |
the column in |
y |
the column in |
cohort |
the column in |
tox |
the column in |
toxColours |
the colours used to identify the DLT status of each subject. See Usage notes below. |
toxLabels |
the texts used to label the various DLT statuses in the legend. See Usage notes below. |
showCohorts |
should the graph indentify cohorts by inserting light grey dashed lines between cohorts? |
xLabel |
the text used to label the x axis |
yLabel |
the text used to label the y axis |
mtd |
the dose identified as the MTD at the end of the study. Appears in green at (maxSubject + 0.25, mtd) where maxSubject is the maximum subject number and mtd is the dose identified as the MTD. |
type |
Optional flag to indicate the type of the trial being plotted. Supported values are "crm" and "ocrm". See Usage notes below. |
... |
Not currently used |
the ggplot2 object containing the plot.
If toxLabels
and/or toxColours
are specfied, the values
supplied are used. Otherwise, the value of type
is used to specify
the number of toxicity categories and the colours used to represent them.
If type == "crm"
, then toxLabels = c("None", "DLT")
and
toxColours=c("grey", "red")
. If type == "ocrm"
, then
toxLabels = c("None", "Sub-DLT", DLT")} and
\code{toxColours=c("grey", "gold", red")
.
1 2 | data(oCRMPatientData)
subjectGraph(oCRMPatientData, type="ocrm")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.