plot_points: Plot phenotypic effect for two markers as points

Description Usage Arguments Value

View source: R/plot_points.R

Description

This internal function is called by plot_effects to generate a plot showing trait the effects of genotype on phenotype. If marker2_vals is NULL, this plot shows the main effect of marker1. Otherwise it shows effects of the two alleles together. In this plot all individual values are plotted as points using color to separate the genotype combinations. The means for each group are indicated by line segments.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_points(
  phenoV,
  marker1_vals,
  marker2_vals,
  pheno_name,
  marker1_label,
  marker2_label,
  ymin = NULL,
  ymax = NULL
)

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

ymin

A numeric value indicating the minimum y value for the plot. If NULL, it will be calculated based on phenoV and error bars.

ymax

A numeric value indicating the maximum y value for the plot. If NULL, it will be calculated based on phenoV and error bars.

Value

None


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