Home > Mobile >  How can I see the name of the categories in the barplot?
How can I see the name of the categories in the barplot?

Time:12-23

How can I get smaller letters to see the full name of the different categories? (I can only see all the names if I do a "plot", not a "barplot")

The idea is to have a ** barplot ** with the full names of the 4 categories (which you can see in the graphic "plot" below).

plot(table(somalia$strike_status))

Plot

barplot(table(somalia$strike_status))

Barplot

Thank you.

CodePudding user response:

You can use the argument cex.names (as one of the arguments to the call to barplot) to define the character extension of the names on the x-axis. For example, if you set cex.names = 0.5 this will reduce the size of the characters by half of the default size and thus render them more readily visible in the plot.

  • Related