Skip to content
Prev 259596 / 398502 Next

mtext text size (cex) doesn't match plot

On Wed, 11 May 2011, George Locke wrote:

            
Please do read the help!  ?mtext says

      cex: character expansion factor.  ?NULL? and ?NA? are equivalent
           to ?1.0?.  This is an absolute measure, not scaled by
           ?par("cex")? or by setting ?par("mfrow")? or ?par("mfcol")?.

so no 'limited experience fiddling around with this problem' was 
needed.  And see ?par:

      ?cex? A numerical value giving the amount by which plotting text
           and symbols should be magnified relative to the default.
           This starts as ?1? when a device is opened, and is reset when
           the layout is changed, e.g. by setting ?mfrow?.

      ?mfcol, mfrow? A vector of the form ?c(nr, nc)?.  Subsequent
           figures will be drawn in an ?nr?-by-?nc? array on the device
           by _columns_ (?mfcol?), or _rows_ (?mfrow?), respectively.

           In a layout with exactly two rows and columns the base value
           of ?"cex"? is reduced by a factor of 0.83: if there are three
           or more of either rows or columns, the reduction factor is
           0.66.
library(fortunes); fortune(14) applies -- see the posting guide.