bubble: Correlation Bubble plot.

Description Usage Arguments Value Examples

View source: R/bubble.r

Description

bubble function will draw bubble plot for correlation analysis.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
bubble(
  data,
  x,
  y,
  col.var,
  size.var,
  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

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
4
5
6
#prepare data
mpg_select <- mpg[mpg$manufacturer %in% c("audi", "ford", "honda", "hyundai"), ]

#Bubble plot
plot<- bubble(data=mpg_select, x="displ", y="cty", col.var="manufacturer", size.var="hwy")
plot

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