prob.heatmap: Plot founder haplotype dosages/probabilities, ordered by...

View source: R/prob.heatmap.R

prob.heatmapR Documentation

Plot founder haplotype dosages/probabilities, ordered by phenotype

Description

This function produces a probability heatmap plot, ordered by the phenotype. This gives an idea of what the regression procedure is actually being handed as inputs.

Usage

prob.heatmap(
  marker,
  p.value = NULL,
  genomecache,
  model = "additive",
  phenotype,
  phenotype.data,
  merge.by = "SUBJECT.NAME",
  founder.labels = NULL,
  founder.cex = 1,
  founder.line = 1,
  founder.col = rep("black", 8),
  include.phenotype.axis = TRUE,
  phenotype.lab.cex = 1,
  phenotype.num.cex = 1,
  phenotype.num.padj = NA,
  phenotype.line = NA,
  phenotype.num.line = NA,
  include.ramp = TRUE,
  ramp.label.cex = 0.7,
  ramp.label.line = 0.5,
  prob.axis.cex = 1,
  include.marker = TRUE,
  marker.line = 2.5,
  alternative.phenotype.label = NULL,
  alternative.marker.label = NULL
)

Arguments

marker

A marker that is contained in the genome cache. In general this should be a marker of interest, such as one beneath a putative QTL peak.

p.value

DEFAULT: NULL. Includes the observed p-value in the plot title.

genomecache

The path to the genome cache that contains founder haplotype information.

model

DEFAULT: "additive". If "additive", dosages are plotted. If "full", probabilities are plotted.

phenotype

The name of the phenotype column in the data set.

phenotype.data

A data.frame object that contains the phenotype information. Should also have a column that matches genomes in the genome cache.

merge.by

DEFAULT: "SUBJECT.NAME". Specifies the columns to merge phenotype and haplotype data.

founder.labels

DEFAULT: "NULL". If NULL, will default to the labels in the genome cache.

founder.cex

DEFAULT: 1. Defines the text size of the founder labels.

include.ramp

DEFAULT: TRUE. If TRUE, spectrum ramp for dosages or probabilities is included.

ramp.label.cex

DEFAULT: 0.7. Specifies the size of the dosage/probability spectrum label.

ramp.label.line

DEFAULT: 0.5. Specifies the number of margin lines that separates the spectrum label from the bottom axis.

prob.axis.cex

DEFAULT: 1. Specifies the size of the dosage/probability tick labels.

include.marker

DEFAULT: TRUE. If TRUE, the marker name is included in the title.

alternative.phenotype.label

DEFAULT: NULL. Allows for an alternative label for the phenotype.

alternative.marker.label

DEFAULT: NULL. Allows for an alternative label for the marker.

Examples

prob.heatmap()

gkeele/miqtl documentation built on June 13, 2022, 4:20 p.m.