Create several plots for an object of class metAgri
Arguments
- x
An object inheriting from class
metAgri
resulting of executing the functionmet_analysis()
- type
A character string specifying the type of plot. "correlation", "covariance" or "multi_traits"
- filter_traits
An optional character vector to filter traits.
- text_size
Numeric input to define the text size.
- ...
Further graphical parameters passed to
covcor_heat()
.
Examples
if (FALSE) {
library(agridat)
library(agriutilities)
data(besag.met)
dat <- besag.met
results <- check_design_met(
data = dat,
genotype = "gen",
trial = "county",
traits = c("yield"),
rep = "rep",
block = "block",
col = "col",
row = "row"
)
out <- single_trial_analysis(results, progress = FALSE)
met_results <- met_analysis(out, progress = FALSE)
print(met_results)
plot(met_results, type = "correlation")
plot(met_results, type = "covariance")
}