Adding Mean Points and Arrows to Violin Plot

You can't mix ggplot with base plot commands, choose one and stick with it.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.