# NOT RUN {
library(metan)
library(dplyr)
# Traits that contains "E"
data_ge2 %>%
select(contains('E')) %>%
corr_ci() %>%
plot_ci()
# Group by environment
# Traits PH, EH, EP, EL, and ED
# Select only correlations with PH
data_ge2 %>%
corr_ci(PH, EP, EL, ED, CW,
sel.var = "PH",
by = ENV) %>%
plot_ci(fill = ENV)
# }
Run the code above in your browser using DataLab