plot_heatmap: Plot a heatmap

View source: R/plots.R

plot_heatmapR Documentation

Plot a heatmap

Description

Plots a heatmap using geom_tile.

Usage

plot_heatmap(
  df,
  x,
  y,
  fill,
  label = NULL,
  label_size = TRUE,
  x_order = NULL,
  y_order = NULL,
  xlab = "x title",
  ylab = "y title",
  legend_lab = "legend title",
  xlab_text_angle = 90,
  ylab_text_angle = 0,
  xlab_text_size = NULL,
  ylab_text_size = NULL,
  xhjust = 0.95,
  xvjust = 0.2,
  yhjust = NULL,
  yvjust = NULL,
  xtitle_text_size = NULL,
  ytitle_text_size = NULL,
  legend_title_size = NULL,
  legend_text_size = NULL,
  geom_tile_color = "white",
  plotly_plot = FALSE,
  lwd = 0.5,
  linetype = 1
)

Arguments

df

df

x

character

y

character

fill

character

label

character. Annotate tiles

label_size

numeric. Text size for tile annotations

x_order

chracter vector.

y_order

character vetor

xlab

character

ylab

character

legend_lab

character

xlab_text_angle

numeric

ylab_text_angle

numeric

xlab_text_size

numeric

ylab_text_size

numeric

xhjust

numeric

xvjust

numeric

yhjust

numeric

yvjust

numeric

xtitle_text_size

numeric

ytitle_text_size

numeric

legend_title_size

numeric

legend_text_size

numeric

geom_tile_color

character

plotly_plot

logical. Set as TRUE if wrapping this plot with ggplotly. Default is FALSE.

lwd

numeric. geom_tile line width

linetype

numeric. geom_tile line type

Details

TODO: read this blogpost

Value

ggplot object


rmgpanw/rawutil documentation built on May 20, 2022, 1:29 a.m.