Hi all,
I've run into an instance where I believe graph dot is the best plot for my purposes, but that the distribution of the variable I am trying to plot for certain of my over groups are bunched together, and I'd like to do something similar to jitter to be able to show at least part of the dots in those bunched areas. But jitter seems not to be a valid graph dot option, so I'm uncertain of how to approach things. Here's a roughly equivalent data example
Which produces:
I've run into an instance where I believe graph dot is the best plot for my purposes, but that the distribution of the variable I am trying to plot for certain of my over groups are bunched together, and I'd like to do something similar to jitter to be able to show at least part of the dots in those bunched areas. But jitter seems not to be a valid graph dot option, so I'm uncertain of how to approach things. Here's a roughly equivalent data example
HTML Code:
clear all
set obs 30
set seed 48103
gen group = runiformint(1, 6)
forvalues i = 1/5{
gen x`i' = runiform()/2 + 5 if inrange(group, 1, 3)
replace x`i' = runiformint(1, 10) if inrange(group, 4, 6)
}
graph dot x1-x5, over(group)

Comment