Code cause graphical problems

That is the same data I used in my reprex above (with a proper format) and it works, could you be more specific about your issue? Do you get any error message?
Ideally try to make a proper reproducible for your issue as explained in this guide