How to get percentage and then create a plot from a given output

Hi @blackish952, welcome to RStdudio Community!

A couple of things, it is discouraged to @name mention someone who is not actively engaged on a thread on their own. Please see the faq about @naming users.

Additionally, you are much more likely to receive the help you are looking for it you provide a reproducible example (reprex) of your issue as a starting point. A reprex makes it much easier for others to understand your issue and figure out how to help. This typically includes a toy dataset that represents your actual dataset, the code you have tried, any error messages, and what your desired output is.