qheatmap: Quick heatmap

Description Usage Arguments Value Note Author(s) Examples

View source: R/qheatmap.R

Description

Quick heatmap

Usage

1
qheatmap(data, mapping = NULL, geom = "tile", zoom_x = 1, zoom_y = 1, ...)

Arguments

data

a cor_tbl object.

mapping

aesthetic mappings parameters.

geom

short name of layer function, the default is "tile".

zoom_x, zoom_y

the ratio of zoom.

...

extra parameters for layer function.

Value

a gg object.

Note

This function is mainly used to add annotation.

Author(s)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data <- gcor_tbl(mtcars)
qheatmap(data, aes(fill = value))

library(ggplot2)
p <- matrix(sample(LETTERS[1:3], 33, replace = TRUE), nrow = 11) %>%
     gcor_tbl() %>%
     qheatmap(aes(fill = value), zoom_x = 0.5) +
     remove_y_axis() +
     coord_fixed()
quickcor(mtcars) +
  geom_square() +
  anno_row_custom(p)

houyunhuang/ggcor documentation built on July 22, 2020, 8:31 p.m.