Plot function for sps
sps_plot.Rd
Plot function for sps
Arguments
- out
Output from function
sps()
. Whenbefore_selection = TRUE
, set this argument to beNULL
.- title
Title of the plot
- columns
(Optional. Default =
NULL
) Names of columns users want to visualize. WhenNULL
, the function plots every column.- before_selection
Logical (
TRUE
orFALSE
. Default =FALSE
). WhenFALSE
, the function will compare selected and non-selected sites. WhenTRUE
, the function simply visualizes the distribution of site-level variables in the target population of sites.- X
(Optional. Use this only when
before_selection = TRUE
.) Site-level variables for the target population of sites.
References
Egami and Lee. (2023+). Designing Multi-Context Studies for External Validity: Site Selection via Synthetic Purposive Sampling. Available at https://naokiegami.com/paper/sps.pdf.