plot_effects | R Documentation |
Creates a graphical field array for a set of plot effects (e.g., phenotypes, genetic values, or plot errors). Requires a data frame generated with the functions field_trial_error or make_phenotypes, or any data frame matching the description below.
plot_effects(df, effect, blocks = TRUE, labels = TRUE)
df |
A data frame with the columns 'col', 'row', and the effects to be plotted. |
effect |
The name of the effects to be plotted. |
blocks |
When |
labels |
When |
A graphical field array with x- and y-axes displaying the column and row numbers, and colour gradient ranging from red (low value) to green (high value).
# Display the simulated plot errors in the example data frame 'error_df_bivar'
# for Trait 1 in Environment 1.
error_df <- error_df_bivar[error_df_bivar$env == 1, ]
plot_effects(
df = error_df,
effect = "e.Trait1",
labels = TRUE,
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.