Rotating axis labels in R
n R, how do I make a (bar)plot's y-axis labels parallel to the X-axis instead of parallel to the Y axis?
r rotate axis labels, use the las argument that is a numeric value indicating the orientation of the tick mark labels and any other text added to a plot after its initialization.
The options are as follows:
Parallel to the axis (the default, 0),
Horizontal (1),
Perpendicular to the axis (2),
Vertical (3).
For example:
data(mtcars)
barplot(mtcars$cyl, col=mtcars$gear, las = 1)
Output:
=======================================================================