geom_point_blur: Draw blurry points in ggplot

Description Usage Arguments Examples

View source: R/geom-point-blur.R

Description

Draw blurry points in ggplot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
geom_point_blur(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  ...,
  blur_size = 3,
  blur_steps = 20,
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE
)

Arguments

mapping, data, stat, position, ..., na.rm, show.legend, inherit.aes

See documentation for ggplot2::geom_point()

blur_size

How far should the blur extend from the edge of the drawn point. Default: 3

blur_steps

Number of repetitions to create blur. A higher value for blur_steps will results in a smoother looking blur. Default: 20

Examples

1
2
3
4
5
6
7
8
## Not run: 
ggplot(mtcars) +
geom_point_blur(aes(mpg, wt, blur_size = disp), blur_steps = 2) +
  scale_blur_size_continuous(range = c(1, 15)) +
  theme_bw() +
  labs(title = "Larger blur indicates larger engine displacement")

## End(Not run)

coolbutuseless/ggblur documentation built on Feb. 16, 2020, 12:21 a.m.