track_scaffold_window_depth: Scaffold depth window track

Description Usage Arguments

View source: R/track_scaffold_window_depth.R

Description

Draws a scaffold plot track for single sex SNP depth data. This function is intended for use in the draw_scaffold_plot function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
track_scaffold_window_depth(
  data,
  sex,
  scaffold.name,
  region,
  type = "absolute",
  major.lines.y = TRUE,
  major.lines.x = FALSE,
  ylim = NULL,
  color = NULL,
  bottom.track = FALSE
)

Arguments

data

depth window data frame.

sex

Sex to plot the data for, either "males" or "females".

scaffold.name

Name of the plotted scaffold (for the x axis).

region

A vector specifying the boundaries of the region to be plotted, e.g. c(125000, 250000).

type

Type of depth to use, either "absolute" or "relative" (default: "absolute").

major.lines.y

If TRUE, major grid lines will be plotted for the y axis (default: TRUE).

major.lines.x

If TRUE, major grid lines will be plotted for the y axis (default: TRUE).

ylim

Limits of the y axis (default: NULL).

color

Color of the plotted area. If NULL, "dodgerblue3" will be used for males and "firebrick2" for females (default: NULL).

bottom.track

If TRUE, this track will be considered bottom track of the plot and the x axis will be drawn (default: FALSE).


INRA-LPGP/PoolSex-vis documentation built on March 7, 2020, 6:03 p.m.