plot.hce {hce} | R Documentation |
A plot method for hce
objects
Description
A plot method for hce
objects
Usage
## S3 method for class 'hce'
plot(x, ...)
Arguments
x |
an object of class |
... |
additional arguments to be passed to |
Value
no return value, called for plotting.
References
Bamber D. "The area above the ordinal dominance graph and the area below the receiver operating characteristic graph." Journal of Mathematical Psychology 12.4 (1975): 387-415. doi:10.1016/0022-2496(75)90001-2
Examples
d <- as_hce(KHCE)
res <- calcWO(AVAL ~ TRTP, data = d)
plot(d, col = 2, type = 'l', ylab = "Active", xlab = "Control", lwd = 2)
polygon(c(0, 1, 1, 0), c(1, 1, 1, 0), col = 2)
legend("bottomright", legend = paste0("WP = ", round(res$WP, 5)))
[Package hce version 0.6.7 Index]