bubble_plot: Make Bubbleplot

Description Usage Arguments Value Author(s) Examples

View source: R/bubble_plot.R

Description

Make bubbleplot.

Usage

1
2
3
4
5
6
7
8
bubble_plot(
  s_mat,
  c_mat,
  n_mat,
  col = colorRampPalette(c("Blue", "Grey", "Red"))(100),
  breaks = seq(-2, 2, length.out = 100),
  main = NULL
)

Arguments

s_mat

(matrix) Matrix denotes the size of bubbles.

c_mat

(matrix) Matrix denotes the color of bubbles.

n_mat

(matrix) Matrix denotes the name of bubbles.

col

(character) Colors.

breaks

(numeric) Breakpoints of colors.

main

(character) Title.

Value

(NULL) A bubbloplot.

Author(s)

DING, HONGXU (hd2326@columbia.edu)

Examples

1
2
s_mat <- c_mat <- n_mat <- matrix(1:12, 3, 4, dimnames=list(1:3, 1:4))
bubble_plot(s_mat, c_mat, n_mat, breaks=seq(1, 12, length.out=100), main="")

hd2326/pageRank documentation built on Dec. 18, 2020, 8:44 a.m.