Folks: (Basically a non-R question). Is there any (simple) OS independent way for (the latest version of) R to determine the physical dimensions in pixels of the current display device? Failing that, (how) can this be done for Windows (XP or 2000, say) ? Thanks. -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA "The business of the statistician is to catalyze the scientific learning process." - George E. P. Box
The screen devices are not platform independent, so I guess not. The height and width arguments for windows() is in physical inches, and the ypinch and xpinch specify pixels per inch, according to ?windows. Andy> From: Berton Gunter > > Folks: > > (Basically a non-R question). > > Is there any (simple) OS independent way for (the latest > version of) R to > determine the physical dimensions in pixels of the current > display device? > > Failing that, (how) can this be done for Windows (XP or 2000, say) ? > > Thanks. > > -- Bert Gunter > Genentech Non-Clinical Statistics > South San Francisco, CA > > "The business of the statistician is to catalyze the > scientific learning > process." - George E. P. Box > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > >
"Berton Gunter" <gunter.berton at gene.com> wrote in message news:200508191747.j7JHlEBV017029 at faraday.gene.com...> Failing that, (how) can this be done for Windows (XP or 2000, say) ?Take a look at the Windows GetDeviceCaps API call http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_88s3.asp Parameters that can be queried include: HORZRES Width, in pixels, of the screen. VERTRES Height, in raster lines, of the screen. HORZSIZE Width, in millimeters, of the physical screen VERTSIZE Height, in millimeters, of the physical screen The specifics of how to use this API call will vary by language. Google will be your friend. efg Bioinformatics Stowers Institute for Medical Research