You might want to look at the grconvertX and grconvertY functions.
You can use them to convert a coordinate relative to the plotting
device (screen, paper) or plotting region to user coordinates to use
with text or mtext.
On Tue, Feb 7, 2012 at 4:06 AM, Manta wrote:
> Dear all,
>
> another questi
Thanks, mtext with option 'line' does the trick. I could not see that option
in my version of R, but it appeared when I installed it again.
--
View this message in context:
http://r.789695.n4.nabble.com/Positioning-text-in-top-left-corner-of-plot-tp831723p4365088.html
Sent from the R help mailing
Both are described in the documentation (?(m)text works for me):
Usage
mtext(text, side = 3, line = 0, outer = FALSE, at = NA,
adj = NA, padj = NA, cex = NA, col = NA, font = NA, ...)
Arguments
texta character or expression vector specifying the text to be
written. Other obj
Thanks, although I still have a couple of questions:
1. What is the line parameter? I could not find it in the manual...
2. How does exactly work the adj parameter when giving two different values?
--
View this message in context:
http://r.789695.n4.nabble.com/Positioning-text-in-top-left-corne
Regarding example 1:
mtext has a line parameter that should help you
example 2:
using
text(par("usr")[1],par("usr")[4],"EUR billions",cex=0.7,adj=c(0,-1.5))
does not depend on the axis (values/range) beyond par('usr')
With
text(par("usr")[1],
you get something closer to y
Dear all,
another questions related to zoo plotting. I would like to do as in the
subject. Here a reproducible code:
library(zoo)
par(mfrow=c(2,1)
plot(zoo(seq(1:10),as.Date(seq(1:10),origin="1970-01-01")),xlab="",ylab="",main="Value",las=1)
mtext("EUR billions",adj=0,cex=0.7)
plot(zoo(seq(1:10),
6 matches
Mail list logo