12
$\begingroup$

Is there something similar to seaborn stripplot in mathematica? The graph I am trying to make is like this: enter image description here

$\endgroup$
1
  • $\begingroup$ Do you have any sample data that can be used by people who want to try things out? $\endgroup$ Commented Dec 16, 2016 at 4:16

2 Answers 2

14
$\begingroup$

This can be done with DistributionChart and a bit of programming:

data = Table[ RandomVariate[NormalDistribution[RandomInteger[5], 1], 30], {7}]; DistributionChart[data, ChartStyle -> "Rainbow", ChartElementFunction -> "PointDensity"] 

enter image description here

DistributionChart[data, ChartStyle -> "Rainbow", ChartElementFunction -> ({AbsolutePointSize[5], Point[Transpose[{RandomReal[#1[[1]], Length[#2]], #2}]]} &)] 

enter image description here

$\endgroup$
4
$\begingroup$

Just adding OP's styling to @BrettChampion's answer:

 data = Table[RandomVariate[NormalDistribution[0, 10], RandomInteger[{10, 100}]], {4}]; DistributionChart[data - Min@Flatten@data, BarSpacing -> 2, AspectRatio -> 1.5, PlotRange -> {{1/2, Automatic}, {0, Automatic}}, ChartStyle -> "Rainbow", Frame -> True, FrameLabel -> {"Day", "Total_Bill"}, GridLines -> {{}, 10 # & /@ Range[0, Max@Flatten@data]}, ChartLabels -> {"Thur", "Fri", "Sat", "Sun"}, ChartElementFunction -> ({AbsolutePointSize[5], Point[Transpose[{RandomReal[#[[1]], Length[#2]], #2}]]} &)] 

enter image description here

$\endgroup$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.