geom_bubble | R Documentation |
Like geom point but has a rim and a filling
geom_bubble(fill = "grey35", ...)
fill |
character string color name or hexidecimal entry |
... |
a ggplot2 layer
# 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.