About this question
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?
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?
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask Business Analyst Expert
Answered on Apr 13, 2021
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:
=======================================================================
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Most-read guides across JanBask
Common Business Analyst interview questions, answered
Guides, tips and career advice on Business Analyst from JanBask experts.
Business Analyst Business Analyst Skills for Career Growth & Job Success
Learn the essential business analyst skills ranging from SQL, data analysis, and BI tools to communication, leadership, and…
Business Analyst Business Analyst Job Description 2025: Key Responsibilities
Explore a complete business analyst job description. Understand key roles, job responsibilities, skills required and start or…
Business Analyst What is a Business Analyst? Definition, Functions & Real-World Relevance
A Business Analyst is a key professional who analyzes business needs, identifies problems, and proposes effective solutions to…
Business Analyst Top 11 Business Analytics Tools to Know About In 2025
Some of the most popular business analytics tools used by business analytics professionals are Blueprint, Case Spec, Axure, Bit…