Make R Studio plots only show up in new window
The dev.new()
function will open a new plot window, which then becomes the target for all plots.
If you wish to open another window you can run the command a second time to open a second window.
dev.off()
will shut down the window (in the order they were opened by default).
You can see how to control multiple graphics devices in the documentation here.
How to plot in RStudio and not have a new window pop up (R Graphics: Device (ACTIVE)?
For others who like me may still encounter this issue:
This is probably caused by an R update to 3.3.2 and is fixed by installing a newer version of RStudio. In my case 1.0.136 did the trick.
Is it possible to plot in new window by default in R?
I think this should do what you want.
plot<-function(...){
grDevices::dev.new()
graphics::plot(...)
}
Rstudio - How to show plot output in bottom right pane?
I have version 1.0.44 of RStudio on a mac - you are using RMarkdown, which, by default in recent versions, causes output to be shown inline within the markdown page.
To undo this behavior, open RStudio->Preferences, and select the R Markdown group on the left. Uncheck the box that says "Show output inline for all R Markdown documents".
Related Topics
Align Edges of Ggplot Choropleth (Legend Title Varies)
Observeevent Shiny Function Used in a Module Does Not Work
Add Na Value to Ggplot Legend for Continuous Data Map
Format Latitude and Longitude Axis Labels in Ggplot
Beginner Tips on Using Plyr to Calculate Year-Over-Year Change Across Groups
How to Pass Pandoc_Args to Yaml Header in Rmarkdown
Generating a Heatmap That Depicts the Clusters in a Dataset Using Hierarchical Clustering in R
Add Dynamic Tabs in Shiny Dashboard Using Conditional Panel
R Markdown Math Equation Alignment
Rotate Labels in a Chorddiagram (R Circlize)
Fama MACbeth Standard Errors in R
Removing a List of Columns from a Data.Frame Using Subset
Dplyr Filter() with SQL-Like %Wildcard%
R: Save Multiple Plots from a File List into a Single File (Png or PDF or Other Format)
How to Increase Stack Space Overflow for Pandoc in R
How to Do Gaussian Elimination in R (Do Not Use "Solve")
How to Control Ggplot's Plotting Area Proportions Instead of Fitting Them to Devices in R