First, you need to tell us what needs fixing. Second, to debug your code we will probably need the data for the plot (the Excel file, or sample contents that produce the same problem). Third, you have a line of code that ends with %>%, which would not run. Either this is a typo or there is some code missing from your question.
I strongly agree that you are much more likely to get help if you identify the problem and provide at least a sample of your data for us to use for finding a fix.