powered by
See Figure 1 for example.
PlotStackedBarDMF( data, dmf.label = "dmf", dmf.category = NULL, d.colors = c("grey60", "grey30", "grey10"), d.labels = c("signature bond", "small cash bond", "large cash bond"), legend.position = "none" )
A list of three ggplots.
A data.frame of which columns includes a binary treatment (Z; PSA provision), an ordinal decision (D), and DMF recommendation.
data.frame
Column name of DMF recommendation in the data. The default is "dmf".
"dmf"
The name of each category of DMF recommendation.
The color of each decision.
The label of each decision.
The position of legend. The default is "none".
"none"
data(psa_synth) PlotStackedBarDMF(psa_synth, dmf.label = "DMF", d.colors = c( "grey80", "grey60", "grey30", "grey10" ), d.labels = c( "signature", "small", "middle", "large" ))
Run the code above in your browser using DataLab