PlotDIMdecisions | R Documentation |
See Figure 2 for example.
PlotDIMdecisions(
res,
y.max = 0.2,
decision.labels = c("signature bond ", "small cash bond ", "large cash bond"),
col.values = c("grey60", "grey30", "grey6"),
shape.values = c(16, 17, 15)
)
res |
A |
y.max |
Maximum value of y-axis. |
decision.labels |
Labels of decisions (D). |
col.values |
Color of point for each decisions. |
shape.values |
Shape of point for each decisions. |
A ggplot.
data(synth)
subgroup_synth <- list(
1:nrow(synth), which(synth$Sex == 0), which(synth$Sex == 1),
which(synth$Sex == 1 & synth$White == 0), which(synth$Sex == 1 & synth$White == 1)
)
res_dec <- CalDIMsubgroup(synth, subgroup = subgroup_synth)
PlotDIMdecisions(res_dec,
decision.labels = c("signature", "small cash", "middle cash", "large cash"),
col.values = c("grey60", "grey30", "grey6", "grey1"),
shape.values = c(16, 17, 15, 18)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.