- 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 star/asterisk sign (*) inside a base R plot?
To display characters inside a base R plot we can simply use text function with expression and if we want to display an asterisk then we need to put the asterisk within double quotes. For example, if we want to display three stars then only expression(paste("***"))) should be used. Check out the below examples to understand how it works.
Example1
> plot(1:10,type="n") > text(8,9,expression(paste(Sig.^"***")))
Output
Example2
> plot(1:10,type="n") > text(5,6,expression(paste(Less_Sig.^"**")))
Output
Example3
> plot(1:10,type="n") > text(2,3,expression(paste(Very_Less_Sig.^"**")))
Output
- Related Articles
- 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 fraction in base R plot?
- How to display star for significance in base R boxplot?
- How to display infinity symbol in base R plot?
- How to display x-bar in base R plot?
- How to display mean in a boxplot with cross sign in base R?
- How to display base R plot axes titles in italics?
- How to display text in base R plot with outline?
- How to display mean with underline in base R plot?
- How to display the superscript for a single variable in a base R plot?
- How to display text in base R plot with 180 degrees rotation?
- 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 create a plot with cross sign in R?

Advertisements