- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to display text in base R plot with 180 degrees rotation?
To display text in base R plot with 180 degrees rotation, we can use text function. We would need to define both the axes values for the position where we need the text to be rotated inside the plot. For the rotation of the text, srt argument will be used and set to the value equals to 270. Check out the below example to understand how it works.
Example
x<-rnorm(1000) hist(x) text(x=2,y=150,"Histogram")
Output
Example
hist(x) text(x=2,y=150,"Histogram",srt=270)
Output
- Related Articles
- How to display text in base R plot with outline?
- How to display mean with underline in base R plot?
- How to display fraction in base R plot?
- How to rotate text in base R plot?
- How to display x-bar in base R plot?
- How to display infinity symbol in base R plot?
- How to display X-axis labels with dash in base R plot?
- How to display base R plot axes titles in italics?
- How to display square root sign in base R plot?
- How to display X-axis labels inside the plot in base R?
- How to display superscript for X-axis title in base R plot?
- How to display star/asterisk sign (*) inside a base R plot?
- How to display raise to the power on X-axis in base R plot?
- How to display legend in base R with different colors?
- How to display the superscript for a single variable in a base R plot?

Advertisements