- 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 rotate text in base R plot?
To write the text in a base R plot, firstly we should create a blank chart by using type="n" if we want to plot only text then the text should be introduced with the help of text function. Now, if we want to rotate the text value then srt argument can be used. For example, if we want to rotate the text to 45 degree then srt = -45 can be used.
Example1
> plot(1:10,type="n") > text(x=5,y=5,"Text inside plot")
Output
Example2
> plot(1:10,type="n") > text(x=5,y=5,"Text inside plot",srt=-20)
Output
Example3
> plot(1:10,type="n") > text(x=5,y=5,"Text inside plot",srt=-45)
Output
- Related Articles
- How to display text in base R plot with outline?
- How to display text in base R plot with 180 degrees rotation?
- How to remove Index in base R plot?
- How to display fraction in base R plot?
- How to create empty bar plot in base R?
- How to display x-bar in base R plot?
- How to display infinity symbol in base R plot?
- How to add a picture to plot in base R?
- How to create a perpendicular arrow in base R plot?
- How to create a cumulative sum plot in base R?
- How to plot matrix columns as lines in base R?
- How to create a plot in base R without margins?
- How to display base R plot axes titles in italics?
- How to display mean with underline in base R plot?
- How to change the axis color in base R plot?

Advertisements