% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vis.R
\name{vis_heatmap}
\alias{vis_heatmap}
\title{Visualisation of matrices and data frames using ggplo2-based heatmaps}
\usage{
vis_heatmap(
  .data,
  .text = TRUE,
  .scientific = FALSE,
  .signif.digits = 2,
  .text.size = 4,
  .labs = c("Sample", "Sample"),
  .title = "Overlap",
  .leg.title = "Overlap values",
  .legend = TRUE,
  .na.value = NA,
  .transpose = FALSE,
  ...
)
}
\arguments{
\item{.data}{Input object: a matrix or a data frame.

If matrix: column names and row names (if presented) will be used as names for labs.

If data frame: the first column will be used for row names and removed from the data.
Other columns will be used for values in the heatmap.}

\item{.text}{If TRUE then plot values in the heatmap cells. If FALSE do not plot values,
just plot coloured cells instead.}

\item{.scientific}{If TRUE then use the scientific notation for numbers (e.g., "2.0e+2").}

\item{.signif.digits}{Number of significant digits to display on plot.}

\item{.text.size}{Size of text in the cells of heatmap.}

\item{.labs}{A character vector of length two with names for x-axis and y-axis, respectively.}

\item{.title}{The The text for the plot's title.}

\item{.leg.title}{The The text for the plots's legend. Provide NULL to remove the legend's title completely.}

\item{.legend}{If TRUE then displays a legend, otherwise removes legend from the plot.}

\item{.na.value}{Replace NA values with this value. By default they remain NA.}

\item{.transpose}{Logical. If TRUE then switch rows and columns.}

\item{...}{Other passed arguments.}
}
\value{
A ggplot2 object.
}
\description{
Fast and easy visualisations of matrices or data frames
with functions based on the ggplot2 package.
}
\examples{
data(immdata)
ov <- repOverlap(immdata$data)
vis_heatmap(ov)
gu <- geneUsage(immdata$data, "hs.trbj")
vis_heatmap(gu)
}
\seealso{
\link{vis}, \link{repOverlap}.
}
\concept{vis}
