metan (version 1.2.1)

plot.fai_blup: Multi-trait selection index

Description

Plot the multitrait index based on factor analysis and ideotype-design proposed by Rocha et al. (2018).

Usage

# S3 method for fai_blup
plot(
  x,
  ideotype = 1,
  SI = 15,
  radar = TRUE,
  arrange.label = FALSE,
  size.point = 2,
  col.sel = "red",
  col.nonsel = "black",
  size.text = 10,
  ...
)

Arguments

x

An object of class waasb

ideotype

The ideotype to be plotted. Default is 1.

SI

An integer [0-100]. The selection intensity in percentage of the total number of genotypes.

radar

Logical argument. If true (default) a radar plot is generated after using coord_polar().

arrange.label

Logical argument. If TRUE, the labels are arranged to avoid text overlapping. This becomes useful when the number of genotypes is large, say, more than 30.

size.point

The size of the point in graphic.

col.sel

The colour for selected genotypes.

col.nonsel

The colour for nonselected genotypes.

size.text

The size for the text in the plot. Defaults to 10.

...

Other arguments to be passed from ggplot2::theme().

Value

An object of class gg, ggplot.

References

Rocha, J.R.A.S.C.R, J.C. Machado, and P.C.S. Carneiro. 2018. Multitrait index based on factor analysis and ideotype-design: proposal and application on elephant grass breeding for bioenergy. GCB Bioenergy 10:52-60. doi: doi:10.1111/gcbb.12443.

Examples

Run this code
# NOT RUN {
library(metan)

FAI = data_ge2 %>%
      waasb(ENV, GEN, REP, c(KW, NKE, PH, EH)) %>%
      fai_blup(DI = c('max, max, max, min'),
               UI = c('min, min, min, max'),
               SI = 15)
plot(FAI)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab