plot_int_heat: Plot phenotypic effects for two markers as a heat map

Description Usage Arguments Value

View source: R/plot_int_heat.R

Description

This internal function is called by plot_effects to generate a heat map showing the effects of genotype on phenotype. This function fits linear models to the markers and traits. It then uses these models to predict trait values at different genotype combinations in a 2D grid. It plots these predicted values in a heat map.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_int_heat(
  phenoV,
  marker1_vals,
  marker2_vals,
  pheno_name = NULL,
  marker1_label = NULL,
  marker2_label = NULL,
  bins1 = 50,
  bins2 = 50
)

Arguments

phenoV

A vector of trait values

marker1_vals

A vector of genotype values for marker1

marker2_vals

A vector of genotype values for marker2.

pheno_name

A string indicating the name of the trait being plotted.

marker1_label

A string indicating the name of marker1

marker2_label

A string indicating the name of marker2

bins1

The number of bins for marker1 over which to predict values of the trait. This can also be a vector specifying those bins.

bins2

The number of bins for marker2 over which to predict values of the trait. This can also be a vector specifying those bins.

Value

None


cape documentation built on Feb. 10, 2021, 5:06 p.m.