# NOT RUN {
gf_jitter()
# without jitter
gf_point(age ~ sex, alpha = 0.25, data = mosaicData::HELPrct)
# jitter only horizontally
gf_jitter(age ~ sex, alpha = 0.25, data = mosaicData::HELPrct, width = 0.2, height = 0)
# alternative way to get jitter
gf_point(age ~ sex,
alpha = 0.25, data = mosaicData::HELPrct,
position = "jitter", width = 0.2, height = 0
)
# }
Run the code above in your browser using DataLab