How to change x axis title with fct_inorder function, ggplot2.
I am using R studio package ggplot2 to generate a barplot. The x axis variables were ordered alphabetically so i used the fct_inorder function to reorder them by my original x-axis data (the way it was ordered in the original file). The issue I am having is with how to change the title of the x-axis title, right now it is titled "fct_inorder(Cell)". I need to change it to say "Cell type". With the fct_inorder function, is it possible to change the x-axis title?
• 1,431 views
•
link
0 answers
No answers yet.
Log in to answer this question.
It usually helps to paste the code that you've tried so far, and also a sample of the data that you're using. Thanks
Hello naomibreslin95!
We believe that this post does not fit the main topic of this site.
This is purely ggplot2, please search Google/StackOverflow.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!