View source: R/plot.CIMTx_sa_grid.R
plot.CIMTx_sa_grid | R Documentation |
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.
## S3 method for class 'CIMTx_sa_grid' plot(x, ate = NULL, att = NULL, ...)
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. |
A ggplot figure
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
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.