thomasp85 / ggfx

Filters and Shaders for 'ggplot2'
https://ggfx.data-imaginist.com
Other
167 stars 4 forks source link

Specify blur area: with_blur #21

Open zx8754 opened 3 years ago

zx8754 commented 3 years ago

See related SO post:

Something like below:

library(ggplot2)
library(ggfx)

ggplot(mtcars, aes(x = disp, y = mpg)) +
  with_blur(
    geom_line(),
    sigma = unit(1, 'mm'),
    xmin = 100, xmax = 200, ymin = 15, ymax = 30 # specify rectangular area
  )