Thanks for fast respond. I will try the fct_reorder() function
The problem with reprex is that it gives me following error message:
pandoc.exe: \: openBinaryFile: does not exist (No such file or directory) Fehler: pandoc document conversion failed with error 1 Ausführung angehalten
It seems that it is caused by the storage location which is a network drive and i cannot access my local storage such as C: since im working in a company and i have no permission currently. same problem for example when i try to knit a markdown document. i have done a lot research on that topic but found no suitable solution how to handle that
fct_reorder() is the function you want (reorder a factor by another variable), but the issue in your plot is that you're mapping the wrong variable to the y-axis. Try this:
geom_col() expects the y-axis to be a number, and you were mapping it to a reordered factor (look at the values on your axis, you're lining up A with A, B with B, etc.
That is a problem with the reprex package but not a reason for not providing a reproducible example (sample data on a copy/paste friendly format and formatted code) instead of screenshots.