DiallelAnalysisR: Diallel Analysis, Heterosis and Related Mating

Designs

CRAN status Downloads R-CMD-check

Overview

DiallelAnalysisR analyses diallel crosses of plant-breeding experiments laid out in randomized complete blocks:

The package has been on CRAN since 2016 (version 0.1.1, 2016-04-09). Version 1.0.0 keeps every function name, argument and result component of earlier versions, so existing scripts run unchanged. It corrects the standard errors of Griffing’s analysis and several results of Hayman() and PartialDiallel() (see NEWS), adds plots and methods to every result, the analyses above, complete help pages with the formulas, fifteen vignettes in HTML and PDF, a comparison with the published values of Griffing (1956), and is many times faster for larger diallels.

Installation

install.packages("DiallelAnalysisR")
# development version
# install.packages("remotes")
remotes::install_github("myaseen208/DiallelAnalysisR")

Quick start

library(DiallelAnalysisR)
fit <-
  Griffing(
      y          = Yield
    , Rep        = Rep
    , Cross1     = Cross1
    , Cross2     = Cross2
    , data       = GriffingData1
    , Method     = 1
    , Model      = 1
    , Reciprocal = c("combined", "split")[1]
    )
fit$ANOVA
             Df  Sum Sq Mean Sq F value Pr(>F)    
gca           7  3804.6  543.52 18.8868 <2e-16 ***
sca          28 22060.8  787.89 27.3783 <2e-16 ***
reciprocals  28   365.5   13.05  0.4536 0.9923    
Error       189  5439.0   28.78                   
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
round(x = fit$GCA, digits = 2)
    1     2     3     4     5     6     7     8 
 0.06  0.47  9.03 -3.44 -2.33 -1.93  7.24 -9.10 
plot(fit)

Learn more

Citation

Yaseen M, Eskridge K, Barbosa P, Guo Y (2026). _DiallelAnalysisR:
Diallel Analysis, Heterosis and Related Mating Designs_. R package
version 1.0.0 (first released 2016),
<https://CRAN.R-project.org/package=DiallelAnalysisR>.

BibTeX:

@Manual{DiallelAnalysisR,
  title = {{DiallelAnalysisR}: Diallel Analysis, Heterosis and Related Mating Designs},
  author = {Muhammad Yaseen and Kent Eskridge and Pedro Barbosa and Yuhang Guo},
  year = {2026},
  note = {R package version 1.0.0 (first released 2016)},
  url = {https://CRAN.R-project.org/package=DiallelAnalysisR},
}