ggheatmap_base: Basic heatmap using ggplot

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Basic heatmap using ggplot

Usage

1
2
3
4
5
6
7
ggheatmap_base(
  df,
  x = "cluster",
  y = "predicted",
  value = "Freq",
  show_number = FALSE
)

Arguments

df

data.frame

x

column name used in the x axis

y

column name used in the y axis

value

value of the color to be used

show_number

logical indicating wether the value of z should be printed in the plot.

Value

a ggplot object

Examples

1
2
3
my_df <- data.frame(x = 1:2, y = 1:2, z = 1:2)
ggheatmap_base(my_df, x = "x", y = "y", value = "z", show_number = TRUE)
ggheatmap_base(my_df, x = "x", y = "y", value = "z", show_number = FALSE)

jspaezp/sctree documentation built on April 30, 2020, 10:36 p.m.