Displaying 20 results from an estimated 11000 matches similar to: "adj parameter in mtext"
2000 Jan 10
1
'at' parameter in mtext(.., adj=0, outer=T) (PR#396)
Depending on the setting of par()$usr,
the 'at' setting in mtext(.., adj=0, outer=T) may cause the
text to appear in an anomalous position (e. g. in the first
instance below, at the left of the plot region rather than
at 'at=0' in the figure region), or the text may not appear
at all.
If one does not set the 'at' parameter the text appears
(with 'adj=0') on the
2000 Nov 07
2
par(las=.) gives wrong "adj" for mtext() (PR#726)
For R Version 1.1.1 and R-devel (Linux)...
Sorry, there's no time to fix myself now
{e.g., after starting a new device} :
par(las=3); plot(1:10); par(las=1) ; mtext("mtext")
Gives a left-adjusted (as for adj = 0) mtext,
even if par("adj") is still 0.5
Note that I'm also not convinced that mtext() should follow par("las")
as it does in the
2004 Aug 19
3
mtext adj= wrong with several las= (PR#7188)
Dear all,
Our quite basic function mtext() does wrong adjustments in some parameter
configurations. This gets obvious when using multi line texts: There is no
way to properly adjust text perpendicular to axis 2, for example.
Best
Jens Oehlschl?gel
m <- matrix(1:9, 3)
colnames(m) <- c("several\nlines", "several\nlines", "several\nlines")
par(mfrow=c(2,2))
2012 Jan 18
2
How do I exactly align the right hand side of "mtext" relative to a plot device? Beyond "adj".
Hi,
I have a problem with aligning text which I'm adding to a plot using
"mtext". I would like to specify the position of the right hand end of the
text string, relative to the device (in the left-right direction).
I've been looking at the use of the argument "adj". But this can't be used
to specify the rightmost point of the text. Neither does it specify exactly
1997 Aug 11
1
R-alpha: R 0.50.a3: adj?
Not sure if I already reported this ... it seems that as of 0.50.a2, the
adj graphics parameter is completely ignored. Try e.g.
plot(1:10)
title(main = "This is a title", adj = 0)
title(main = "This is a title", adj = 1)
No difference ...
-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read
2010 Apr 22
1
Multicolor main title in a plot or mtext
Dear R-users, the problem I'm facing today is to write a
multicolor main title in a plot.
I would like to have 3/4 colors to help people in the
audience to visually realize what is what in a 4x2 plot array
On top of each plot I would like to have two lines.
The 1st line will indicate what is plotted
The 2nd line will indicate a a reference
Graphically speaking I would like a result similar
2007 Sep 02
2
Different behavior of mtext
Dear R Users,
I am quite surprised to see that mtext gives different results when it
is used with 'pairs' and with "plot'. In the two following codes, it
seems that the 'at' argument in mtext doesn't consider the same unit system.
I would appreciate your comments on this issue.
Sebastien
##### Pairs
mydata<-data.frame(x=1:10,y=1:10)
par(cex.main=1,
2005 Jul 04
1
Colors in mtext
I want to assign different colors to different strings using
mtext(...). However, when I use something like
mtext(text=c("string1","string2","string3"),
col=c("black","blue","red"), side=3, line=0)
string2 and string3 are printed over string1. When I use
paste("string1","string2","string3"), the series
2007 Jul 28
1
text() and vector arguments like adj
Hello,
I remarked that the function
## Default S3 method:
text (x, y = NULL, labels = seq(along = x), adj = NULL,pos = NULL, offset = 0.5, vfont = NULL,cex = 1, col = NULL, font = NULL, ...)
accepts vectors of arguments (of the same length) except for the parameter adj.
When passing a vector of information for adjusting the labels, only the first value
is taken.
Any special reason for this ?
2010 Feb 25
1
mtext with at=NULL
Hello,
in the help of mtext I found
"at: If ?length(at)==0? (the default), the location will be determined
by ?adj?"
But if I use mtext( "hello world", at=NULL) there comes the following
error message:
Fehler in mtext("hallo Welt", side = 3, adj = NA, at = NULL) :
'at' mit L?nge 0 angegeben
So the help says it is ok to use at with length(at) == 0 but if
2008 Aug 07
1
Mtext doesn't display characters in italic when I use a greek symbol
Following on from my previous mail!
plot(1:10,1:10)
mtext("title", side=3, adj=0, font=3, cex=1.5)
This works as expected and puts the font in italics.
tag <- "A)"
suffix <- "genea::"
plot(1:10,1:10)
mtext(bquote(.(tag) ~ Delta * .(suffix)), side=3, adj=0, font=3,
cex=1.5)
Here, the font isn't in italics, it's normal.
I presume this is some
2012 Feb 29
1
Computing line= for mtext
I want to right-justify a vector of numbers in the right margin of a
low-level plot. For this I need to compute the line parameter to give to
mtext. Is this the correct scalable calculation?
par(mar=c(4,3,1,5)); plot(1:20)
s <- 'abcde'; w=strwidth(s, units='inches')/par('cin')[1]
mtext(s, side=4, las=1, at=5, adj=1, line=w-.5, cex=1)
mtext(s, side=4, las=1, at=7,
2010 Aug 18
3
mtext coordinates
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20100818/5f203714/attachment.pl>
2012 Jun 02
1
mtext bug
Sir,
I have hit a the limits of my understanding of text / par / opar etc...
I have a few related xts data frames which have multiple columns, and have
written a for-loop to make a set of charts - however i do not get any
margin text when i run the loop.
when i test the code outside of the loop the margin text appears - however
when i run the loop the margin text does not appear ... what gives?
2000 Apr 12
1
Matrix indexing question
I apologise if this type of question has been answered before, however
how do I count the number of TRUE's in the upper half (non-symmetric)
matrix of logicals.
Thank you
Ross Darnell
University of Newcastle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2001 May 04
1
image legend
I am trying to place a legend onto an image but the legend to
clipped/nonexitent outside the boundary of the image. I am wanting to
place the legend where the main title normally would appear.
I would appreciate someone telling me why I cannot do this. (Which
part of the help file I haven't read most likely)
Regards
Ross Darnell
2011 Dec 09
1
Align expression and text in mtext()
Dear R-helpers,
I have trouble aligning an expression with a subscript, and text, in margin
text:
par(mar=c(6,6,1,1))
b <- barplot(1:3)
mtext(c("A","B","C"), at=b, side=1, line=1, cex=1.3)
mtext(expression(italic(C)[a]~(more~text)), at=0, line=1, side=1,cex=1.3)
As explained in the help files and elsewhere, I understand that the
expression is aligned by the
2006 Aug 14
1
mtext uses the typographical descender to align text
<>
Hello
One sometimes (quite often really ) marvel at the choice of defaults in
R's graphic engine.
For some obscure reason, mtext uses the typographical descender (bottom
of letters) to align text. That is: "gG" will end up slightly higher
that "GG". Depending on the font, "Q" might end up higher than "O".
(for explanation of baseline
2010 Jun 22
1
Warped Text in mtext in a Quartz-Window
Hello,
With one procedure, I get a strangely warped text in the mtext-area of a quartz-window, while with an other the text comes out OK - see attached PDF.
(Number of Trials is the x-Axis label, which always comes out OK)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Warped Text.pdf
Type: application/pdf
Size: 24420 bytes
Desc: not available
URL:
2000 Jun 26
2
Data.frame query
I think I have a data.frame called "statlab".
> is.data.frame(statlab)
[1] TRUE
and I can perform summary, dim, ...
but when I try
> attach(statlab)
Error in attach(statlab) : attach only works for lists and data frames
I am using
> version
_
platform i686-unknown-linux
arch i686
os linux
system i686,