Skip to contents

This function allows you to create a bubble charts.

Usage

create_bubble_chart(
  t,
  x,
  y,
  fill,
  s,
  color = "psrc_light",
  title = NULL,
  subtitle = NULL
)

Arguments

t

A tibble or dataframe in long form for plotting

x

The name of the variable you want plotted on the X-Axis

y

The name of the variable you want plotted on the Y-Axis

fill

The name of the variable you want the fill color of the bubbles to be based on

s

The name of the variable used to size the bubbles

color

Name of color palette to use - defaults to "psrc_light"

title

Title to be used for chart, if desired - defaults to "NULL"

subtitle

Sub-title to be used for chart, if desired - defaults to "NULL"

Value

bubble chart

Author

Craig Helmann