Open Plot Window of Specific Size in R & RStudio (Example Code)

In this tutorial, I’ll show how to create a manually defined graphic window in R.

Example: Opening Graphic Window of Particular Size in RStudio

plot.new() # Draw empty plot to RStudio window
dev.new(width = 4, # Open new plot window
        height = 25,
        noRStudioGD = TRUE)
plot(1:13) # Plotting data

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top