Hi Husen,
ggplot2 works with layers. In the main statement, ggplot(...), you define things like the datasets.
then you define layers on top with the geom_’s.
Now, it’s always a good idea to send along your code with some data, but without those, my best guess is that you’ve done:
- a geom_jitter() showing 8 data points
- a geom_boxplot() which shows 2 outliers (although there could be other one’s that coincidentally overlap with the geom_jitter).
just try one geom at a time. and check [1] if you don’t want the geom_boxplot to show the outliers.
Best,
Richard
--
Dr. R.L. Zijdeman | CDO | International Institute of Social History | Cruquiusweg 31 | 1019 AT Amsterdam | +31 20 668 5 866