| nsca_plot | R Documentation |
Draws the scatter plot with the necessity and sufficiency frontiers and shades the admissible region between them. Several frontier techniques may be drawn at once; unlike the computation, a chart compares nothing numerically, so mixing techniques here is safe and often informative.
nsca_plot(model, x = NULL, ceilings = NULL, shade = TRUE, annotate = TRUE)
## S3 method for class 'nsca_result'
plot(x, ...)
model |
An object returned by |
x |
Optional condition names or positions. |
ceilings |
Frontier techniques to draw. Defaults to all that were estimated. |
shade |
Shade the admissible region under the first technique. |
annotate |
Label the two corners that the claim requires to be empty. |
... |
Passed on to |
A ggplot for one condition, or a named list of plots.
nsca_analysis(), nsca_table()
set.seed(1)
x <- sort(runif(60))
dat <- data.frame(X = x, Y = pmin(pmax(x + rnorm(60, 0, 0.1), 0), 1))
fit <- nsca_analysis(dat, "X", "Y", ceilings = "ce_fdh")
nsca_plot(fit)
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.