# ge_plot: Graphical analysis of genotype-vs-environment interaction In metan: Multi Environment Trials Analysis

## Description

This function produces a line plot for a graphical interpretation of the genotype-vs-environment interaction. By default, environments are in the x axis whereas the genotypes are depicted by different lines. The y axis contains the value of the selected variable. A heatmap can also be created.

## Usage

 1 2 3 4 5 6 7 8 9 ge_plot( .data, env, gen, resp, type = 1, plot_theme = theme_metan(), colour = TRUE ) 

## Arguments

 .data The dataset containing the columns related to Environments, Genotypes, replication/block and response variable(s). env The name of the column that contains the levels of the environments gen The name of the column that contains the levels of the genotypes. resp The response variable. type The type of plot type = 1 for a heatmap or type = 2 for a line plot. plot_theme The graphical theme of the plot. Default is plot_theme = theme_metan(). For more details,see ggplot2::theme(). colour Logical argument. If FALSE then the plot will not be colored.

## Value

An object of class gg, ggplot.

## Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

## Examples

 1 2 3 library(metan) ge_plot(data_ge2, ENV, GEN, PH) ge_plot(data_ge, ENV, GEN, GY, type = 2) 

metan documentation built on Nov. 10, 2021, 9:11 a.m.