View source: R/track_scaffold_window_depth_combined.R
Draws a scaffold plot track for both sexes depth window data.
This function is intended for use in the draw_scaffold_plot
function.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
data |
depth window data frame. |
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). |
males.color |
Color of the plotted area for males (default: "dodgerblue3"). |
females.color |
Color of the plotted area for females (default: "firebrick2"). |
bottom.track |
If TRUE, this track will be considered bottom track of the plot and the x axis will be drawn (default: FALSE). |
alpha.value |
Transparency values for the tracks (default: 0.25). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.