[R] graphic device Windows tickmarks

Christian Brandstätter bran.chri at gmail.com
Mon May 30 21:23:36 CEST 2016

Dear List,

I discovered an issue; when plotting (base) in R, the tickmark-labels 
are slightly off (Windows machine).

Thus, when saving the plot in R with x11() and dev(...) the 
plot-tickmarks shift, see the example below.

Session Info:

R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

With savePlot it works, but the graph quality is not as nice. Am I 
missing something here?

thickticks <- 

axis(1, at = thickticks, labels=FALSE, las = 1,lwd.ticks=2)

# plots
dev.print(device=png,"test.png",units="in",width=12,height=12,res=500) # 
won't display prop.
dev.print(device=postscript,"test.eps",width=12,height=12)  # won't 
display prop.
dev.print(device=pdf,"test.pdf",width=12,height=12)  # won't display prop.
savePlot("test_2.png",type="png") # displays prop.

More information about the R-help mailing list