fig_bubble_rect: Bubble Graph

Description Usage Arguments See Also Examples

View source: R/figure_bubble_rect.R

Description

This function gives a way to draw a point matrix, with both the x and y axises are discrete variables and map the values to the size of points.

Usage

1
2
fig_bubble_rect(rawdata, text.size.x = 12, text.size.y = 12,
  palette = "Spectral", bubble.size.range = c(3, 15))

Arguments

rawdata

A data.frame with three columns as follows: 'xlabel',character vector for discrete variables in x axis; 'ylabel',character vector for discrete variables in y axis; 'values',numeric vector defines the data value to be ploted.

text.size.x

The text size of x axis.

text.size.y

The text size of y axis.

palette

The palette used for points.

bubble.size.range

A vector with length two, defines the size of points, the format is like c(minsize, maxsize).

See Also

Other figure: fig_calendar, fig_event_line, fig_event_storm, fig_parallel

Examples

1
2
3
4
5
6
7
8
9
numx <- 10
numy <- 7
rawdata <- data.frame(
  xlabel = rep(paste(letters[1:numx], 'x', sep = '-'), numy),
  ylabel = rep(paste(letters[1:numy], 'y', sep = '-'), each = numx),
  values = runif(numx*numy, min = 5, max = 30)
)

fig_bubble_rect(rawdata)

purplezippo/ggpkt documentation built on May 21, 2019, 10:34 a.m.