anibubble: Correlation Animated Bubble plot.

Description Usage Arguments Value Examples

View source: R/bubble_ani.r

Description

anibubble function will draw Animated Bubble plot for correlation analysis.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
anibubble(
  data,
  x,
  y,
  col.var,
  size.var,
  frame.var,
  fps = 5,
  width = 1900,
  height = 1068.75,
  title = NULL,
  subtitle = NULL,
  xtitle = NULL,
  ytitle = NULL,
  caption = NULL
)

Arguments

data

input data.frame

x

x variable

y

y variable

col.var

color variable

size.var

size variable

frame.var

frame variable

fps

frame change per second

width

width plot size

height

height plot size

title

main title

subtitle

subtitle

xtitle

x axis title

ytitle

y axis title

caption

caption

Value

An object of class ggplot

Examples

1
2
3
plot<- anibubble(data=gapminder,x="gdpPercap",y="lifeExp",
                 col.var="continent",size.var = "pop", frame.var = "year")
plot

HeeseokMoon/ggedachart documentation built on Dec. 31, 2020, 12:59 p.m.