Question: (Closed) How to change x axis title with fct_inorder function, ggplot2.
gravatar for naomibreslin95
2.4 years ago by
naomibreslin950 wrote:

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?

ADD COMMENTlink modified 2.3 years ago by Biostar ♦♦ 20 • written 2.4 years ago by naomibreslin950

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

ADD REPLYlink modified 2.3 years ago • written 2.4 years ago by Kevin Blighe67k

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.


ADD REPLYlink written 2.3 years ago by _r_am31k
Please log in to add an answer.
The thread is closed. No new answers may be added.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2005 users visited in the last hour