dplot_utils: Decoration plot

Description Usage Arguments Value Author(s) Examples

Description

Decoration plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
as_dplot(plot)

is_dplot(plot)

anno_col_custom(obj, height = 0.2, pos = "top")

anno_row_custom(obj, width = 0.2, pos = "right")

empty_plot()

## S3 method for class 'dplot'
print(x, ...)

Arguments

plot, x

a "gg" or "dplot" object.

obj

a "gg" object.

pos

one of "left", "right", "bottom" or "top".

width, height

scala numeric value.

...

extra parameters.

Value

a "dplot" object.

Author(s)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
library(ggplot2)
d <- matrix(sample(c(LETTERS[1:3], NA), 33, replace = TRUE), nrow = 11)
p <- gcor_tbl(d, "var") %>%
  quickcor(mapping = aes(colour = var)) +
  geom_point(size = 3)
quickcor(mtcars) +
  geom_square() +
  anno_row_custom(p) +
  anno_col_custom(p)

## End(Not run)

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