[R] Jul 26, 2013; 12:34am

Eik Vettorazzi E.Vettorazzi at uke.de
Mon Jul 29 22:45:53 CEST 2013


Dear Frank,
you can use grconvertY and grconvertX to convert from user coordinates
to inches etc and vice versa.
E.g.

lines(rep(.25*1500,2),grconvertY(grconvertY(par("usr")[3],"user","inches")+c(0,.1),from="inches",to="user"))

should produce a tick of 0.1 inches height, regardless of the actual
plot height.

Hope this helps.

Am 26.07.2013 13:57, schrieb Frank Harrell:
> Thanks Rich and Jim and apologies for omitting the line
> 
> x <- c(285, 43.75, 94, 150, 214, 375, 270, 350, 41.5, 210, 30, 37.6,
> 281, 101, 210)
> 
> But the fundamental problem remains that vertical spacing is not correct
> unless I waste a lot of image space at the top.
> 
> Frank
> 
> 


-- 
Eik Vettorazzi

Department of Medical Biometry and Epidemiology
University Medical Center Hamburg-Eppendorf

Martinistr. 52
20246 Hamburg

T ++49/40/7410-58243
F ++49/40/7410-57790



More information about the R-help mailing list