Function for creating scatter plots of predicted values in computed mega environments.
## S3 method for class 'megaEnv'plot( x,..., engine = c("lme4","asreml"), colorGenoBy =NULL, title = paste("Scatterplot of mega environments for", x$trait), output =TRUE)
Arguments
x: An object of class megaEnv.
...: Further arguments to be passed on to underlying plot functions.
engine: A character string specifying the engine used for making the predictions on which the plots are based.
colorGenoBy: A character string indicating a column in TD by which the genotypes in the scatter plots are colored. If NULL all genotypes are displayed in black.
title: A character string used a title for the plot.
output: Should the plot be output to the current device? If FALSE only a ggtable object is invisibly returned.
Examples
## Compute mega environments for TDMaize.geMegaEnv <- gxeMegaEnv(TD = TDMaize, trait ="yld")## Create a scatter plot of predicted values.plot(geMegaEnv)
See Also
Other mega environments: gxeMegaEnv(), predict.megaEnv()