Description Usage Arguments Value See Also
View source: R/vizBySubgroup-plotFcns.R
vizBySubgroup()
is an internal function that
takes a vector of covariate data, a vector of (binary) treatment
assignments, and generates a plot.
1 2 | vizBySubgroup(covarData, trt, covarName, plotHeight = 200, plotWidth = 300,
trtColor = "#ffec5c", ctrlColor = "#e1315b", continuous)
|
covarData |
A vector of numeric covariate data to plot. |
trt |
A binary numeric vector that indicates each observation's treatment status (0 or 1). |
covarName |
A string that contains the name of the covariate being plotted (for annotating the plot). |
plotHeight |
A scalar integer that defines the height of
the plot; passed to |
plotWidth |
A scalar integer that defines the width of
the plot; passed to |
trtColor |
The color of treated observations in the bar
chart. This argument is passed to |
ctrlColor |
The color of control observations in the bar
chart. This argument is passed to |
continuous |
A logical scalar, indicating whether the provided data is from a continuous distribution. |
If both of the logical arguments are false, the output will be a plotly object containing an empty plot. Otherwise, the output will be a ggplot object containing the plot.
Other plotting functions: covarProfiles
,
forestPlotGen.fewGroups
,
forestPlotGen.manyGroups
,
forestPlot
, groupQuantiles
,
subgroupProfiles
, vizByCovar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.