density_plot | R Documentation |
This is a high-level function to plot marker density along the chromosome. This may help in identifying regions that are poorly covered by markers and is thus helpful for troubleshooting.
density_plot(snp_data, chr_length = NULL, center_pos = NULL)
snp_data |
A list comprising at least an element called |
chr_length |
A numeric of length one. The length of the chromosome
(in base pairs). This is used to set the plotting window of the x-axis
from 0 to the length of the chromosome. If |
center_pos |
A numeric of length one. The position of the center of
the gene of interest (in base pairs). This is used to add a red vertical
line at gene position. If |
As the output of this function is a graphical object from package ggplot2
,
it is possible to customize the appearance of the graph and add layers to
the graph using the syntax of this package.
A graphical object inheriting from classes gg
and ggplot
from package ggplot2
, which can be either assigned to an object
or printed to a graphical device.
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.