- 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 change the resolution of a plot in base R?
In base R, we can save a plot as a png and pass the resolution in the same stage. The procedure to do this is creating the png image with resolution with res argument then creating the plot and using dev.off() to create the file. Check out the below examples to understand how it works.
Example1
> png(file="example1.png",res=100) > plot(1:10) > dev.off()
Output:
Example2
> png(file="example2.png",res=200) > plot(1:10) > dev.off()
Output
- Related Articles
- How to change the axis color in base R plot?
- How to change the border color of box of a base R plot?
- How to change the background color of base R plot region?
- How to change the font size of legend in base R plot?
- How to change the background color of legend in base R plot?
- How to change the position of X-axis in base R plot?
- How to change the Y-axis title in base R plot?
- How to change the axis ticks color in base R plot?
- How to add a picture to plot in base R?
- How to rotate text in base R plot?
- How to remove Index in base R plot?
- How to display fraction in base R plot?
- How to assign a value to a base R plot?
- How to create a perpendicular arrow in base R plot?
- How to create a cumulative sum plot in base R?

Advertisements