- Trending Categories
- Data Structure
- Operating System
- C Programming
- 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 find the size of the plotting window in R?
The plotting window size can be found by using dev.size function and we can pass in for inches and cm for centimeters. For example, if we create a plot then we can use dev.size("in") to find the plot size in inches and dev.size("cm") to find the size in centimeters.
Consider the below vectors and create a point chart between those vectors −
x<-rnorm(10) y<-rnorm(10,500,35) plot(x,y)
Now finding the plotting window size −
dev.size("in") # in inches
 5.760417 5.750000
dev.size("cm") # in centimeters
 14.63146 14.60500
This will change if we drag the plotting window to right, left, upper or down side as shown below (dragging the plotting window to left) −
Now again finding the size −
 6.614583 5.750000
 16.80104 14.60500
This will not change until and unless we do not increase the plotting window manually.
- Setting the size of the plotting canvas in Matplotlib
- How to find the object size in R?
- How to set the size of the browser window in Selenium?
- How to find the sample size for t test in R?
- How to resize the background image to window size in Tkinter?
- How to find the size of localStorage in HTML?
- How to find the size of a list in C#?
- How to change the font size of legend in base R plot?
- How to change the size of plots arranged using grid.arrange in R?
- How to find the size of an int in C/C++?
- How to find the opposite of %in% in R?
- How to find the unique combinations of a string vector elements with a fixed size in R?
- How to change the tick size using ggplot2 in R?
- How to change the font size of main title of boxplot in base R?
- Find the size of a HashMap in Java