n_missing | R Documentation |
Number (or proportion) of missing (or non-missing) genotypes by individual or marker
n_missing(
cross,
by = c("individual", "marker"),
summary = c("count", "proportion")
)
n_typed(
cross,
by = c("individual", "marker"),
summary = c("count", "proportion")
)
cross |
An object of class |
by |
Whether to summarize by individual or marker |
summary |
Whether to take count or proportion |
Vector of counts (or proportions) of missing (or non-missing) genotypes.
n_missing()
: Count missing genotypes
n_typed()
: Count genotypes
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
nmis_ind <- n_missing(iron)
pmis_mar <- n_typed(iron, "mar", "proportion")
plot(nmis_ind, xlab="Individual", ylab="No. missing genotypes")
plot(pmis_mar, xlab="Markers", ylab="Prop. genotyped")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.