From joehl at gmx.de  Thu Aug 26 20:48:01 2004
From: joehl at gmx.de (=?ISO-8859-1?Q?=22Jens_Oehlschl=E4gel=22?=)
Date: Thu Aug 26 20:48:08 2004
Subject: [Rd] mtext adj= wrong with several las= (PR#7188)
Message-ID: <1708.1093546081@www17.gmx.net>


> No, adj moves not always along the axis:

No, not yet. But mtext logically is oriented relative to its axis. And it
should behave consistently relative to its axis. 

Whichever solution is choosen finally, I think it is important, that the
default parametrisation will handle multi-line labels such that they are
centered around at= and aligned at line=, whatever side= and las= are
choosen. Beeing forced to tweak with adj= / padj= depending on side= / las=
would be very impractical. This "requirement" is easily fullfilled with
default adj=0.5 if we have mtext's adj= always move along the axis. With a
adj= / padj= solution, different defaults would be needed for the different
combinations of side= and las=.

How does it S+?

Best


Jens


# Thats my problem
txt <- "This are\nfour lines\nof some\nrubish"
y <- barplot(x, axes=FALSE, axisnames=FALSE, horiz=TRUE)
# axis doesn't align it properly
axis(2, label=rep(txt, 5), at=y, las=2, adj=0)
# and no mtext parameters give vertically centered and right adjusted text
mtext(rep(txt, 5), side=2, line=1, at=y, las=2, adj=0)


-- 
Supergnstige DSL-Tarife + WLAN-Router fr 0,- EUR*
Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl


[Rd] mtext adj= wrong with several las= (PR#7188)
=?ISO-8859-1?Q?=22Jens_Oehlschl=E4gel=22?=