Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculate_annotation.R
\name{calculate_annotation}
\alias{calculate_annotation}
\title{Calculate HeatmapAnnotation}
\usage{
calculate_annotation(
df,
columns,
bin_colour = c("blueviolet", "chartreuse3"),
set = "Set1",
...
)
}
\arguments{
\item{df}{Data frame}
\item{set}{Character - colour set for code{\link[RColorBrewer]{brewer.pal}}}
\item{...}{further arguments for HeatmapAnnotation}
\item{colums}{Character - column names, multiple are possible}
}
\value{
Returns a named list with colour codes for the HeatmapAnnotation.
}
\description{
This function calculates the colours for code{\link[ComplexHeatmap]{HeatmapAnnotation}}
}
\details{
Be cautios that the colour Palette (set) contains enough colours for the column/factor you are interested in.
}
\examples{
ha <- calculate_annotation(summarized_experiment, "primary_diagnosis", set = "Set1")
}