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
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{ggplot_side_color_plot}
\alias{ggplot_side_color_plot}
\title{Side color plots for heatmaps}
\usage{
ggplot_side_color_plot(
df,
palette = NULL,
scale_title = paste(type, "side colors"),
type = c("column", "row"),
text_angle = if (type == "column") 0 else 90,
is_colors = FALSE,
fontsize = 10,
label_name = NULL
)
}
\arguments{
\item{df}{A "molten" data.frame as produced by (eg) reshape2::melt}
\item{palette}{A function which can return colors to be used in the sidebar
plot}
\item{scale_title}{Title of the color scale. Not currently used.}
\item{type}{Horizontal or vertical plot? Valid values are "column" and "row"}
\item{text_angle}{the angle of the text of the rows/columns.}
\item{is_colors}{Use if the values in df are valid colours and should not be mapped
to a color scheme, and instead should be plotted directly.}
\item{fontsize}{Font size (currently unused)}
\item{label_name}{Name for the mouseover label, usually "row" or "column"}
}
\value{
A ggplot geom_tile object
}
\description{
Important for creating annotation.
}
|