Re: [R] Coordinate or top left corner + offset

2015-02-10 Thread Ben Bolker
...@stat.math.ethz.ch > Subject: Re: [R] Coordinate or top left corner + offset > > David L Carlson tamu.edu> writes: > >> >> This is more complicated, but it could be rolled up into a >> function. > Replace your mtext() call with the following: >>

Re: [R] Coordinate or top left corner + offset

2015-02-10 Thread David L Carlson
-boun...@r-project.org] On Behalf Of Ben Bolker Sent: Monday, February 9, 2015 5:43 PM To: r-h...@stat.math.ethz.ch Subject: Re: [R] Coordinate or top left corner + offset David L Carlson tamu.edu> writes: > > This is more complicated, but it could be rolled up into a function. Replace your mt

Re: [R] Coordinate or top left corner + offset

2015-02-09 Thread Ben Bolker
David L Carlson tamu.edu> writes: > > This is more complicated, but it could be rolled up into a function. Replace your mtext() call with the following: > > # Set character expansion size > cx <- 2.5 > # Get the plot coordinates and the character size > ur <- par("usr")[c(1, 4)] > chr <- par("c

Re: [R] Coordinate or top left corner + offset

2015-02-09 Thread David L Carlson
of the box. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Pascal A. Niklaus Sent: Monday, February 9, 2015 10:27

[R] Coordinate or top left corner + offset

2015-02-09 Thread Pascal A. Niklaus
Dear all, I am struggling to add annotations to panels of a series of plots arranged on a page. Basically, I'd like to add letters enumerating the panels ("a","b","c",...), at a fixed distance from the top left corner of the plot's "box". I succeeded partly with "mtext" (see below), but th