# \[AlgebraOfGraphics.jl\] adding jitter to a scatter plot points

**URL:** <https://discourse.julialang.org/t/algebraofgraphics-jl-adding-jitter-to-a-scatter-plot-points/97310>\
**Category:** Visualization\
**Created:** [April 10, 2023, 5:16pm UTC](https://discourse.julialang.org/t/algebraofgraphics-jl-adding-jitter-to-a-scatter-plot-points/97310 "2023-04-10T17:16:03Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [April 11, 2023, 2:30pm UTC](https://discourse.julialang.org/t/algebraofgraphics-jl-adding-jitter-to-a-scatter-plot-points/97310/5 "2023-04-11T14:30:54Z")

</div>

It’s pretty good! With

```julia
data(df) * mapping(:species, :bill_length_mm; color=:sex => nonnumeric) *
                       visual(RainClouds) |> draw

```

I get

 ![rainclouds](https://global.discourse-cdn.com/julialang/original/3X/c/3/c3741305a8c5b688e51745c3ce20d9ef746dc090.png)  
and to get just jittered points,

```julia
data(df) * mapping(:species, :bill_length_mm; color=:sex => nonnumeric) *
                       visual(RainClouds; clouds=nothing, plot_boxplots=false) |> draw

```

 ![plt](https://global.discourse-cdn.com/julialang/original/3X/0/3/031c226ee56b629b4a2d55970ecf683ee0e5f342.png)

Can also do `clouds=hist`:

```julia
data(df) * mapping(:species, :bill_length_mm; color=:sex => nonnumeric) *
                       visual(RainClouds; clouds=hist, plot_boxplots=false) |> draw

```

 ![plt](https://global.discourse-cdn.com/julialang/original/3X/3/4/347bc90300f0d825b74cefbbdbab32444c6bb46e.png)

---

_[View the full topic](https://discourse.julialang.org/t/algebraofgraphics-jl-adding-jitter-to-a-scatter-plot-points/97310)._
