GithubHelp home page GithubHelp logo

Comments (6)

awkena avatar awkena commented on June 29, 2024 1

@TiagoOlivoto Thanks so much. I have installed the new version and run the analysis again. Everything looks great now.

from metan.

TiagoOlivoto avatar TiagoOlivoto commented on June 29, 2024

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.

image

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.

awkena avatar awkena commented on June 29, 2024

@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.

TiagoOlivoto avatar TiagoOlivoto commented on June 29, 2024

@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.

awkena avatar awkena commented on June 29, 2024

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.

TiagoOlivoto avatar TiagoOlivoto commented on June 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.