View source: R/stability_variance.R

stability_variance | R Documentation |

`stability_variance`

calculate variance of a genotype across environments.

```
stability_variance(data, trait, genotype, environment, unit.correct = FALSE)
```

`data` |
a dataframe containing trait, genotype and environment. |

`trait` |
colname of a column containing a numeric vector of interested trait to be analyzed. |

`genotype` |
colname of a column containing a character or factor vector labeling different genotypic varieties. |

`environment` |
colname of a column containing a character or factor vector labeling different environments. |

`unit.correct` |
logical, default is |

Stability variance (Shukla, 1972) is calculatd based on lindear combination of ecovalence and mean square of genotype-environment interaction. Variety with low stability variance is considered as stable. Negative values of stability variance is replaced with 0. Equation of stability variance can be found in vignette file.

a data table with stability variance

Tien-Cheng Wang

shukla1972toolStability

```
data(Data)
stability.variance <- stability_variance(
data = Data,
trait = "Yield",
genotype = "Genotype",
environment = "Environment")
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.