plotHeatmap: Plot heatmap

View source: R/plot.R

plotHeatmapR Documentation

Plot heatmap

Description

Plot heatmap

Usage

plotHeatmap(
  df,
  color.per.group = NULL,
  row.order = TRUE,
  col.order = TRUE,
  legend.position = "right",
  size.df = NULL,
  size.range = c(1, 5),
  size.legend.title = "size",
  legend.key.width = unit(8, "pt"),
  legend.title = "-log10(p-value)",
  x.axis.position = "top",
  color.range = NULL,
  plot.theme = ggplot2::theme_get(),
  symmetric = FALSE,
  palette = NULL,
  font.size = 8,
  distance = "manhattan",
  clust.method = "complete",
  grid.color = "gray50"
)

Arguments

df

Data frame with plot data

color.per.group

Colors per cell group (default=NULL)

row.order

Forced row order (default=NULL)

col.order

Forced column order (default=NULL)

legend.position

Position of legend in plot. See ggplot2::theme (default="right")

size.df

(default=NULL)

size.range

(default=c(1, 5))

size.legend.title

(default="size")

legend.key.width

(default=unit(8, "pt))

legend.title

Title on plot (default="-log10(p-value)")

x.axis.position

Position of x axis (default="top")

color.range

Range for filling colors

plot.theme

(default=ggplot2::theme_get())

symmetric

boolean (default=FALSE)

palette

(default=NULL)

font.size

integer (default=8)

distance

character string (default="manhattan")

clust.method

character string (default="complete")

grid.color

Color of the grid. Set to "transparent" to disable the grid. (default: "gray50")

Value

A ggplot2 object


kharchenkolab/cacoa documentation built on Nov. 8, 2024, 6:06 a.m.