- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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 infinity symbol in base R plot?
To display infinity symbol in base R plot, we can use text function and expression function. Inside expression function we can put infinity word for the display of infinity. For Example, if we want to display infinity at position X=2 and Y=4 then we can use the below mentioned command −
text(2,4,expression(infinity))
Example 1
To display infinity symbol in base R plot, use the snippet given below −
plot(1:10,type="n") text(5,5,expression(infinity))
Output
If you execute the above given snippet, it generates the following Output −
Example 2
To display infinity symbol in base R plot, use the snippet given below −
plot(1:10,type="n") text(5,5,expression(-infinity))
Output
If you execute the above given snippet, it generates the following Output −
- Related Articles
- Display infinity and minus infinity both symbols in one base R plot.
- How to display fraction in base R plot?
- How to display x-bar 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 text in base R plot with outline?
- How to display mean with underline in base R plot?
- How to display text in base R plot with 180 degrees rotation?
- 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 X-axis labels with dash 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 the superscript for a single variable in a base R plot?
- How to rotate text in base R plot?

Advertisements