Hi, I am wondering if there is any way to fix the size (i.e. height and width) of R's graphic device permanently. Every time I open R, and create my first plot, the default size of the graphic device is fairly small, and I need to adjust it manually to make it of comfortable size. Any help is really appreciated. Thanks for your time.
Fixing the size of R's Graphic Device
8 messages · Christofer Bogaso, Jeff Newmiller, Bert Gunter +1 more
What is your default graphics device? That is, what OS are you using?
On August 25, 2022 11:10:45 AM PDT, Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
Hi, I am wondering if there is any way to fix the size (i.e. height and width) of R's graphic device permanently. Every time I open R, and create my first plot, the default size of the graphic device is fairly small, and I need to adjust it manually to make it of comfortable size. Any help is really appreciated. Thanks for your time.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Sent from my phone. Please excuse my brevity.
See ?Startup for various ways of automatically executing custom code at R start up. See ?setHook and ?.onLoad for how to run custom code when packages (like grDevices) are loaded. (But Jeff may be able to help you avoid even this if you respond to his queries). Cheers, Bert On Thu, Aug 25, 2022 at 11:11 AM Christofer Bogaso
<bogaso.christofer at gmail.com> wrote:
Hi, I am wondering if there is any way to fix the size (i.e. height and width) of R's graphic device permanently. Every time I open R, and create my first plot, the default size of the graphic device is fairly small, and I need to adjust it manually to make it of comfortable size. Any help is really appreciated. Thanks for your time.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Hi, I am using a large screen monitor, the default size comes with fairly small maybe smaller than a quarter. Is there any to get exact measure of the default size? I am using R in WIndows 11 OS On Thu, Aug 25, 2022 at 11:54 PM Jeff Newmiller
<jdnewmil at dcn.davis.ca.us> wrote:
What is your default graphics device? That is, what OS are you using? On August 25, 2022 11:10:45 AM PDT, Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
Hi, I am wondering if there is any way to fix the size (i.e. height and width) of R's graphic device permanently. Every time I open R, and create my first plot, the default size of the graphic device is fairly small, and I need to adjust it manually to make it of comfortable size. Any help is really appreciated. Thanks for your time.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- Sent from my phone. Please excuse my brevity.
In one of your R startup files you can set options("device") to a function
that dev.new() will call when a new plot window is requested. E.g.,
options(device=function()windows(width=3,height=4.5,xpos=-200,ypos=100))
graphics.off()
plot(1:10)
-Bill
On Thu, Aug 25, 2022 at 11:11 AM Christofer Bogaso <
bogaso.christofer at gmail.com> wrote:
Hi, I am wondering if there is any way to fix the size (i.e. height and width) of R's graphic device permanently. Every time I open R, and create my first plot, the default size of the graphic device is fairly small, and I need to adjust it manually to make it of comfortable size. Any help is really appreciated. Thanks for your time.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Thanks. But this is woking upto some number For example options(device=function()windows(width=303,height=354,xpos=-5,ypos=9)) graphics.off() plot(1:10) and options(device=function()windows(width=303,height=394,xpos=-5,ypos=9)) graphics.off() plot(1:10) do not change the height of device
On Fri, Aug 26, 2022 at 12:14 AM Bill Dunlap <williamwdunlap at gmail.com> wrote:
In one of your R startup files you can set options("device") to a function that dev.new() will call when a new plot window is requested. E.g.,
options(device=function()windows(width=3,height=4.5,xpos=-200,ypos=100))
graphics.off()
plot(1:10)
-Bill
On Thu, Aug 25, 2022 at 11:11 AM Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
Hi, I am wondering if there is any way to fix the size (i.e. height and width) of R's graphic device permanently. Every time I open R, and create my first plot, the default size of the graphic device is fairly small, and I need to adjust it manually to make it of comfortable size. Any help is really appreciated. Thanks for your time.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Please read ?windows. There is a limit to the default size, which I am guessing is related to the default window stacking behavior. Also, units of width and height are in inches ... do you really have a 300 inch display?
On August 25, 2022 12:05:00 PM PDT, Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
Thanks. But this is woking upto some number For example options(device=function()windows(width=303,height=354,xpos=-5,ypos=9)) graphics.off() plot(1:10) and options(device=function()windows(width=303,height=394,xpos=-5,ypos=9)) graphics.off() plot(1:10) do not change the height of device On Fri, Aug 26, 2022 at 12:14 AM Bill Dunlap <williamwdunlap at gmail.com> wrote:
In one of your R startup files you can set options("device") to a function that dev.new() will call when a new plot window is requested. E.g.,
options(device=function()windows(width=3,height=4.5,xpos=-200,ypos=100))
graphics.off()
plot(1:10)
-Bill
On Thu, Aug 25, 2022 at 11:11 AM Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
Hi, I am wondering if there is any way to fix the size (i.e. height and width) of R's graphic device permanently. Every time I open R, and create my first plot, the default size of the graphic device is fairly small, and I need to adjust it manually to make it of comfortable size. Any help is really appreciated. Thanks for your time.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Sent from my phone. Please excuse my brevity.
I really dont know what could be the right value. So I am trying to get the right value based on trial and error. All I want is that the graphic windows' height should occupy the height of my screen and width should be ~70% of width of my scream I am using Mac desktop (21.5 inch 2017 model) but running Windows.
On Fri, Aug 26, 2022 at 1:02 AM Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
Please read ?windows. There is a limit to the default size, which I am guessing is related to the default window stacking behavior. Also, units of width and height are in inches ... do you really have a 300 inch display? On August 25, 2022 12:05:00 PM PDT, Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
Thanks. But this is woking upto some number For example options(device=function()windows(width=303,height=354,xpos=-5,ypos=9)) graphics.off() plot(1:10) and options(device=function()windows(width=303,height=394,xpos=-5,ypos=9)) graphics.off() plot(1:10) do not change the height of device On Fri, Aug 26, 2022 at 12:14 AM Bill Dunlap <williamwdunlap at gmail.com> wrote:
In one of your R startup files you can set options("device") to a function that dev.new() will call when a new plot window is requested. E.g.,
options(device=function()windows(width=3,height=4.5,xpos=-200,ypos=100))
graphics.off()
plot(1:10)
-Bill
On Thu, Aug 25, 2022 at 11:11 AM Christofer Bogaso <bogaso.christofer at gmail.com> wrote:
Hi, I am wondering if there is any way to fix the size (i.e. height and width) of R's graphic device permanently. Every time I open R, and create my first plot, the default size of the graphic device is fairly small, and I need to adjust it manually to make it of comfortable size. Any help is really appreciated. Thanks for your time.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- Sent from my phone. Please excuse my brevity.