- 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 create a base R plot without axes but keeping the frame of the plot?
To create a base R plot without axes but keeping the frame of the plot, we can set axes argument to FALSE and frame.plot argument to TRUE.
For example, if we have a vector called V and we want to create a plot of V without axes but with the frame of the plot then, we can use the command given below −
plot(V,axes=FALSE,frame.plot=TRUE)
Check out the below example to understand how it works.
Example
Consider the following snippet −
x<-rpois(5,2) plot(x,axes=FALSE)
Output
If you execute the above given snippet, it generates the following Output −
To create a base R plot without axes but keeping the frame of the plot, add the following code to the above snippet −
x<-rpois(5,2) plot(x,axes=FALSE,frame.plot=TRUE)
Output
If you execute all the above given snippets as a single program, it generates the following Output −
- Related Articles
- How to create a plot in base R with tick marks but excluding axes lines?
- How to create a plot in base R without margins?
- How to display base R plot axes titles in italics?
- How to remove the plot margin in base R between the axes and the points inside the plot?
- How to create boxplot in base R without axes labels?
- How to make the axes widths in a plot wider than default 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 create a colored box for base R plot?
- How to create a boxplot without frame in base R?
- How to create empty bar plot in base R?
- How to create a boxplot in base R without any axes except Y?
- How to change the resolution of a plot in base R?
- How to create a plot with dashed regression line in base R?
- How to create a time series plot in R without time vector?

Advertisements