plot.CIMTx_sa_grid {CIMTx} | R Documentation |
Contour plot for the grid specification of sensitivity analysis
Description
This function make the countor plot after the grid specification of sensitivity analysis. The input of the function is from the output of the sa.R function.
Usage
## S3 method for class 'CIMTx_sa_grid'
plot(x, ate = NULL, att = NULL, ...)
Arguments
x |
Object from sa function |
ate |
a character indicating the ATE effect to plot, eg, "1,3" or "2,3" |
att |
a character indicating the ATT effect to plot, eg, "1,3" or "1,2" |
... |
further arguments passed to or from other methods. |
Value
A ggplot figure
References
Hadley Wickham (2019). stringr: Simple, Consistent Wrappers for Common String Operations. R package version 1.4.0. URL:https://CRAN.R-project.org/package=stringr
Elio Campitelli (2021). metR: Tools for Easier Analysis of Meteorological Fields. R package version 0.11.0. URL:https://github.com/eliocamp/metR
Examples
sa_object_example <- list(
ATE13 = seq(0, 1, length.out = 25), grid_index = c(4, 5),
c_functions = data.frame(
c4 = rep(seq(-0.6, 0, 0.15), each = 5),
c5 = rep(seq(0, 0.6, 0.15), 5)
)
)
class(sa_object_example) <- "CIMTx_sa_grid"
plot(sa_object_example, ate = "1,3")
[Package CIMTx version 1.2.0 Index]