To reproduce (requires Windows): 1) Set your desktop scaling to 100%; 2) run the script below; 3) observe that the chart in scaled-example.wmf takes up the whole canvas. 4) Set your desktop scaling to greater than 100% (try 150% or 200%); 5) again run the script below; 6) observe that the chart in scaled-example.wmf takes up less than the whole canvas.
Increasingly, we're seeing users run R on machines with very high-resolution screens and scaled displays. How can we correct for this effect within R? Cheers, - Peter Script: -- start -- egfr <- c(222.6,176.4) outcome <- data.frame(egfr) hgb <- c(141,134) predictors <- data.frame(hgb) title <- "eGFR vs. Hgb" ylab <- "eGFR" xlab <- "Hgb" gr1<-file.path(path.expand('~'),"scaled-example.wmf") win.metafile(gr1) plot(predictors[[1]],outcome[[1]],main=title,ylab=ylab,xlab=xlab) dev.off() -- end -- ______________________________________________ R-help@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.