Comments (6)
@TiagoOlivoto Thanks so much. I have installed the new version and run the analysis again. Everything looks great now.
from metan.
Hi @awkena , I've taken a look at your plot bellow and I'm not sure about what you say with "mislabeling of the ENV and GEN factors". blue marks should be environments and green genotypes? If yes, please, double-check your code and see if genotypes and environments were informed in the correct arguments.
If you want ENV and GEN instead of Env and Gen, use leg.lab = c("GEN", "ENV")
, see bellow
library(metan)
#> Registered S3 method overwritten by 'GGally':
#> method from
#> +.gg ggplot2
#> []=====================================================[]
#> [] Multi-Environment Trial Analysis (metan) v1.5.0 []
#> [] Author: Tiago Olivoto []
#> [] Type citation('metan') to know how to cite metan []
#> [] Type vignette('metan_start') for a short tutorial []
#> [] Visit http://bit.ly/2TIq6JE for a complete tutorial []
#> []=====================================================[]
mod <- gge(data_ge, ENV, GEN, GY)
plot(mod,
type = 3,
leg.lab = c("GEN", "ENV"))
Created on 2020-04-22 by the reprex package (v0.3.0)
Since there is no clear error or bug, I'm closing this issue now. Please, feel free to comment here or send me an email if future questions arose.
Olivoto
from metan.
@TiagoOlivoto You could see from my plot that the GEN are plotted with a GREEN color and the ENV with a BLUE color. However, the legend says otherwise -- In the legend, GEN have been mislabeled with a BLUE color instead of a GREEN color, whereas ENV have been mislabeled with a GREEN color instead of BLUE color.
from metan.
@awkena, If you look to my example, you'll see that genotypes and environments are labeled correctly. It seems likely you informed the column of genotypes of you data in the env
argument and the column of environments of your data I the gen
argument of gge()
from metan.
soy_dat.xlsx
@TiagoOlivoto I have attached my data for your attention. I arranged my columns in the same order as the data_ge data set, and used the same codes as used in the tutorial.
This was the code I used:
gge_model <- gge(soy, ENV, GEN, GY, svp = "symmetrical", scaling = 1)
e <- plot(gge_model, type = 3)
from metan.
Dear @awkena , thank you for sending your data. I just encountered a very simple but embarrassing bug when plotting type = 3
. In your specific case, this mislabeling occurred because there has been exactly one (and only one) genotype into each polygon region. I've just uploaded a fix to this bug in the development version. Please, install metan again with devtools::install_github("TiagoOlivoto/metan")
. You can see the example with the corrected code bellow.
I hope this help you.
Regards
library(metan)
#> Registered S3 method overwritten by 'GGally':
#> method from
#> +.gg ggplot2
#> []=====================================================[]
#> [] Multi-Environment Trial Analysis (metan) v1.5.1 []
#> [] Author: Tiago Olivoto []
#> [] Type citation('metan') to know how to cite metan []
#> [] Type vignette('metan_start') for a short tutorial []
#> [] Visit http://bit.ly/2TIq6JE for a complete tutorial []
#> []=====================================================[]
library(readxl)
soy_dat <- read_excel("D:/Desktop/soy_dat.xlsx")
gge_model <- gge(soy_dat, ENV, GEN, GY, svp = "symmetrical", scaling = 1)
plot(gge_model, type = 3)
Created on 2020-04-23 by the reprex package (v0.3.0)
from metan.
Related Issues (20)
- Release metan 1.16.0 HOT 1
- error while analysis path analysis HOT 7
- Problem with ge_stats HOT 3
- AMMI Analysis HOT 2
- Shukla Stablility with wrong length of levels HOT 1
- print_table(.) : could not find function "print_table" HOT 1
- MGIDI selection differential is false if averaged data is negative HOT 2
- error when I run ge_stat() code of metan package HOT 8
- Problem with plot.gge or plot function HOT 2
- Error in corr_coef(data, ..., type = c("linear", "partial"), method = c("pearson", : could not find function "corr_coef" HOT 2
- Error in path_coeff(datt, resp = SYPPI) : could not find function "path_coeff" HOT 2
- Same code of "metan" running on on one dataset, but not on similar second dataset HOT 2
- Inclusion of covariate to dependent trait while calculating BLUP values
- Inclusion of covariate to dependent trait while calculating BLUP values HOT 1
- How to remove outliers in METAN HOT 1
- Hello HOT 2
- metan temporarily out of CRAN HOT 1
- rep and block arguments for gge HOT 1
- problem in running your example code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metan.