Md. Moyazzem Hossain
2022-Feb-26 22:03 UTC
[R] Plots not showing up in the RStudio plot pane
Dear R-experts, I hope that you are doing well. Whenever I use the plot command in RStudio, the plot is shown in a new device window. I want the device to stay in the RStudio plot window in the lower righthand corner. I have tried in the following way. 1. I have used the dev.off() command. It just closes the window but when I use the plot command then a new window opened again. 2. Tools->Global options->R Mark down In that phase select "window" from that list in the "show output preview in:" then apply. 3. Tools > Global Options > Pane Layout, "Plots" is checked. 4. Update the RStudio. However, still have the same problem. I would be happy if anyone has any help to solve it. Thanks in advance. Hossain -- Best Regards, Md. Moyazzem Hossain Associate Professor Department of Statistics Jahangirnagar University Savar, Dhaka-1342, Bangladesh Website: juniv.edu/teachers/hossainmm Research: *[image: Google Scholar] <scholar.google.com/citations?hl=en&user=-U03XCgAAAAJ>* | *ResearchGate <researchgate.net/profile/Md_Hossain107>* | *ORCID iD <orcid.org/0000-0003-3593-6936>* [[alternative HTML version deleted]]
This mailing list is about R, not RStudio [1]. RStudio normally sets up the default graphics device to be their IDE device, but details as to why that behavior may be broken for you wouldn't normally be discussed here. FWIW if you are using some contributed package it may bypass the default graphics device setting... but you have not provided a reproducible example so no one else could know if that could be the problem. You may also have a `.Rprofile` R file in your home directory with some commands in it that could mess with your settings. [1] community.rstudio.com On February 26, 2022 2:03:53 PM PST, "Md. Moyazzem Hossain" <hossainmm at juniv.edu> wrote:>Dear R-experts, > >I hope that you are doing well. > >Whenever I use the plot command in RStudio, the plot is shown in a new >device window. I want the device to stay in the RStudio plot window in the >lower righthand corner. > >I have tried in the following way. > >1. I have used the dev.off() command. It just closes the window but when I >use the plot command then a new window opened again. >2. Tools->Global options->R Mark down In that phase select "window" from >that list in the "show output preview in:" then apply. >3. Tools > Global Options > Pane Layout, "Plots" is checked. >4. Update the RStudio. > >However, still have the same problem. > >I would be happy if anyone has any help to solve it. >Thanks in advance. > >Hossain-- Sent from my phone. Please excuse my brevity.
Hej Try maybe: dev.off() before plotting. Regards, Vincent Edjabou Mobile: +45 31 95 99 33 linkedin.com/vincent <linkedin.com/in/vincent-maklawe-edjabou-9742a41b> Orcid: 0000-0003-2849-6151 On Sat, Feb 26, 2022 at 11:04 PM Md. Moyazzem Hossain <hossainmm at juniv.edu> wrote:> Dear R-experts, > > I hope that you are doing well. > > Whenever I use the plot command in RStudio, the plot is shown in a new > device window. I want the device to stay in the RStudio plot window in the > lower righthand corner. > > I have tried in the following way. > > 1. I have used the dev.off() command. It just closes the window but when I > use the plot command then a new window opened again. > 2. Tools->Global options->R Mark down In that phase select "window" from > that list in the "show output preview in:" then apply. > 3. Tools > Global Options > Pane Layout, "Plots" is checked. > 4. Update the RStudio. > > However, still have the same problem. > > I would be happy if anyone has any help to solve it. > Thanks in advance. > > Hossain > -- > Best Regards, > Md. Moyazzem Hossain > Associate Professor > Department of Statistics > Jahangirnagar University > Savar, Dhaka-1342, Bangladesh > Website: juniv.edu/teachers/hossainmm > Research: *[image: Google Scholar] > <scholar.google.com/citations?hl=en&user=-U03XCgAAAAJ>* | > *ResearchGate > <researchgate.net/profile/Md_Hossain107>* | *ORCID iD > <orcid.org/0000-0003-3593-6936>* > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]