Hello friendly computer people,
I’m new to R and am getting a bit lost in the vast world of setting plot parameters. Currently I have a barplot that looks like this. My main issue is cleaning up the graph so that each bar is associated with a category. Right now the fonts are set so they overlap and don’t show all the categories.
In other words, I would like to:
- Have the bar names read horizontally.
- Set the font paramaters so that each category is shown i.e. each bar has a name. Maybe this involves shrinking the font size?
Any help on this matter would be greatly appreciated!
Thank you 🙂
EDIT: Very good suggestion of ucfagls included. Thx!
See the options
lasin ?par andcex.namesin ?barplot :Gives :
So adjust your own code using the options
lasandcex.names. Also check the option mar in the help page ?par to know how you could adjust the values in case your labels fall off.