plot_lines: Plot interaction plot for traits and genetic markers

View source: R/plot_lines.R

plot_linesR Documentation

Plot interaction plot for traits and genetic markers

Description

This internal function is called by plot.effects to generate an interaction plot for two markers relating to a trait. If marker2_vals is NULL, the function instead shows the main effect for marker1.

Usage

plot_lines(
  phenoV,
  marker1_vals,
  marker2_vals = NULL,
  pheno_name,
  marker1_label,
  marker2_label,
  ymin = NULL,
  ymax = NULL,
  error_bars
)

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.

error_bars

A string indicating the type of error bars to draw. Can be "sd" for standard deviation, "se" for standard error, or "none".

Value

None


cape documentation built on May 29, 2024, 5:11 a.m.