geom_bubble: geom_bubble

View source: R/geom_bubble.R

geom_bubbleR Documentation

geom_bubble

Description

Like geom point but has a rim and a filling

Usage

geom_bubble(fill = "grey35", ...)

Arguments

fill

character string color name or hexidecimal entry

...

Value

a ggplot2 layer

Examples

# without function
library(ggplot2)
ggplot(cars) +
  aes(x = speed, y = dist) +
  geom_point(shape = 21,size = 7,
    alpha = .85,
    color = "white",
    fill = "plum2")

 geom_bubble

# using function
library(ggplot2)
ggplot(cars) +
  aes(x = speed, y = dist) +
  geom_bubble(size = 7,
    alpha = .85,
    color = "white",
    fill = "plum2"
   ) +
 theme_minimal()



EvaMaeRey/ggdirect documentation built on Sept. 29, 2023, 12:36 a.m.