Description Usage Arguments Value Examples
View source: R/mmplot_cov_profiles.R
Plots all coverage profiles in the data for comparison. This is useful for identifying scaffold patterns across multiple coverage profiles and spot potential contaminants.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
mm |
(required) A dataframe loaded with |
normalise |
(Logical) Normalises each coverage column in |
alpha |
The transparancy of the scaffold points and lines, where 0 is invisible and 1 is opaque. (Default: |
color_by |
Color the scaffolds by a variable in |
color_vector |
The colors from which to generate a color gradient when |
color_scale_log10 |
(Logical) Log10-scale the color gradient when |
y_scale_log10 |
(Logical) Log10-scale the y axis. (Default: |
plot_lines |
(Logical) Connect scaffolds with lines. (Default: |
interactive_plot |
(Logical) Return an interactive |
mm_normalise |
A dataframe loaded with |
mm_normalise_index |
A coverage column to serve as an index for normalisation. |
A ggplot or plotly object. Note that mmgenome2 hides all warnings produced by ggplot objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(mmgenome2)
data(mmgenome2)
mmgenome2
selection <- data.frame(
cov_C13.11.25 = c(7.2, 16.2, 25.2, 23.3, 10.1),
cov_C14.01.09 = c(47, 77, 52.8, 29.5, 22.1)
)
mmgenome2_extraction <- mmextract(mmgenome2,
min_length = 3000,
selection = selection,
inverse = FALSE
)
mmplot_cov_profiles(mmgenome2_extraction,
color_by = "taxonomy",
normalise = FALSE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.