hahaha
hahaha

Reputation: 175

How to make the jitter by using vegalite package

I got the following graph for each job title with salary in box plot: enter image description here

enter image description here

so there are some outliers here, presented as dot, I want to make some jitters like this for each job title have outliers:

enter image description here

Is there any way I can do it with Vegalite package?
can someone gives me some advices please?
Thanks in advance!

Upvotes: 5

Views: 232

Answers (2)

giantmoa
giantmoa

Reputation: 337

using StatisticalGraphics.jl package:

using InMemoryDatasets
using StatisticalGraphics
ds=Dataset(x=[1,2],y=[2,3])
sgplot(ds,Line(x=:x,y=:y))

if you run this code you'll see enter image description here press "view source" to see VegaLite specs.

Upvotes: 2

davidebacci
davidebacci

Reputation: 30219

You can read a solution for jittering here:

https://github.com/vega/vega-lite/issues/4703

Upvotes: 1

Related Questions