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 47 48 49 50 51 52 53
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_dbs_contexts.R
\name{plot_dbs_contexts}
\alias{plot_dbs_contexts}
\title{Plot the DBS contexts}
\usage{
plot_dbs_contexts(counts, same_y = FALSE, condensed = FALSE)
}
\arguments{
\item{counts}{A tibble containing the number of DBS per COSMIC context.}
\item{same_y}{A boolean describing whether the same y axis should be used for all samples.}
\item{condensed}{More condensed plotting format. Default = F.}
}
\value{
A ggplot figure.
}
\description{
Plot the DBS contexts
}
\details{
Plots the number of DBS COSMIC context per sample.
It takes a tibble with counts as its input. This tibble can be generated by count_dbs_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 dbs counts
## See 'count_dbs_contexts()' for more info on how to do this.
dbs_counts <- readRDS(system.file("states/blood_dbs_counts.rds",
package = "MutationalPatterns"
))
## Plot contexts
plot_dbs_contexts(dbs_counts)
## Use the same y axis for all samples.
plot_dbs_contexts(dbs_counts, same_y = TRUE)
## Create a more condensed plot
plot_dbs_contexts(dbs_counts, condensed = TRUE)
}
\seealso{
\code{\link{count_dbs_contexts}}, \code{\link{plot_main_dbs_contexts}}
Other DBS:
\code{\link{count_dbs_contexts}()},
\code{\link{get_dbs_context}()},
\code{\link{plot_compare_dbs}()},
\code{\link{plot_main_dbs_contexts}()}
}
\concept{DBS}
|