pollux
pollux

Reputation: 79

Rstudio - How to show plot output in bottom right pane?

I used a qplot, but instead of the plot showing in the plots tab on the bottom right, it decides to show in the top left. How do I move all the outputs to the bottom right pane?

enter image description here

Upvotes: 5

Views: 15434

Answers (3)

samBuchl
samBuchl

Reputation: 1089

Instead of modifying options in R-Notebook or R Markdown, you can create a new R script and paste your desired code there. After running the code, the output will be displayed in the Plots window located at the bottom-right corner, where you can access various Export options:

R figure from R script outputted to Plots window, ready for export

It would indeed be convenient to edit the inline R Markdown output graphs with the click of a button (feature request?). But with this copy-to-R-script workaround, you can easily save the code that generates your figure with the figure, which might be useful for later reference.

Upvotes: 0

Marquistador
Marquistador

Reputation: 1951

The answer above is correct for Mac - in the Windows version of R Studio, select 'Tools' --> 'Global Options...' and you will be brought to the window that you see in that post.

Upvotes: 6

Anand
Anand

Reputation: 3760

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".

Screenshot

Upvotes: 22

Related Questions