View source: R/09-correlation.R
| analyze_variable_correlations | R Documentation |
Analyze correlations between multiple raster variables and create correlation matrices and plots.
analyze_variable_correlations(
variable_list,
output_folder = NULL,
region_boundary = NULL,
method = "pearson",
create_plots = TRUE
)
variable_list |
Named list of raster variables |
output_folder |
Output directory for results |
region_boundary |
Optional region boundary |
method |
Correlation method |
create_plots |
Create correlation plots |
List with correlation results
## Not run:
# These examples require directory structures with multiple data files
# Analyze correlations between multiple variables
variables <- list(
ndvi = "ndvi.tif",
nitrogen = "soil_nitrogen.tif",
elevation = "dem.tif",
precipitation = "precip.tif"
)
correlation_results <- analyze_variable_correlations(
variables,
output_folder = "correlations/",
region_boundary = "Ohio"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.