
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 plot in base R without margins?
To create a plot without margins, we first need to define that margin in a way that the plot created after that will not have margins and this can be done by using par function. We would need to pass mar function within par function as par(mar=c(0,0,0,0)).
Example
par(mar=c(0,0,0,0)) plot(1:10)
Output
Example
barplot(1:10)
Output
- Related Questions & Answers
- How to create a base R plot without axes but keeping the frame of the plot?
- How to create a boxplot without frame in base R?
- How to create a histogram without bins 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 empty bar plot in base R?
- How to create a colored box for base R plot?
- How to create boxplot in base R without axes labels?
- How to create a plot with dashed regression line in base R?
- How to change plot area margins using ggplot2 in R?
- How to create a boxplot in base R without any axes except Y?
- How to create a plot with reversed Y-axis labels in base R?
- How to create a time series plot in R without time vector?
- How to assign a value to a base R plot?
- How to add a picture to plot in base R?
Advertisements