powered by
Difference of proportions plot
g_difp( data = NULL, method = "wilson", col = c("#619CFF", "#619CFF", "#F564E3"), ... )
A ggplot2 object
A stat_mcr, stat_tcs or stat_ecs object.
stat_mcr
stat_tcs
stat_ecs
the type of confidence interval: "cp" for Clopper-Pearson, "wilson" for Wilson (the default), "student" for Student.
A list of colors (two colors needed).
further arguments passed to or from other methods.
Emmanuel Duguet
data(origin1) m <- callback(labour1,"offer","hist","callback","all") s <- stat_mcr(m) g_difp(data=s,method="student")
Run the code above in your browser using DataLab