File: plot_mbs_contexts.Rd

package info (click to toggle)
r-bioc-mutationalpatterns 3.16.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,360 kB
  • sloc: sh: 8; makefile: 2
file content (46 lines) | stat: -rw-r--r-- 1,229 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_mbs_contexts.R
\name{plot_mbs_contexts}
\alias{plot_mbs_contexts}
\title{Plot the MBS contexts}
\usage{
plot_mbs_contexts(counts, same_y = TRUE)
}
\arguments{
\item{counts}{A tibble containing the number of MBS per MBS length.}

\item{same_y}{A boolean describing whether the same y axis should be used for all samples.}
}
\value{
A ggplot figure.
}
\description{
Plot the MBS contexts
}
\details{
Plots the number of MBS per MBS length per sample.
It takes a tibble with counts as its input. This tibble can be generated by count_mbs_contexts
Each sample is plotted in a separate facet.
The same y axis can be used for all samples or a separate y axis can be used.
}
\examples{
## Get The mbs counts
## See 'count_mbs_contexts()' for more info on how to do this.
mbs_counts <- readRDS(system.file("states/blood_mbs_counts.rds",
  package = "MutationalPatterns"
))

## Plot contexts
plot_mbs_contexts(mbs_counts)

## Use a different y axis for all samples.
plot_mbs_contexts(mbs_counts, same_y = FALSE)
}
\seealso{
\code{\link{count_mbs_contexts}}

Other MBS: 
\code{\link{count_mbs_contexts}()},
\code{\link{plot_compare_mbs}()}
}
\concept{MBS}