Displaying 20 results from an estimated 743 matches for "adj".
2008 Jul 22
4
Is text(..., adj) upside down? (Or am I?)
?text says
"'adj' allows _adj_ustment of the text with respect to '(x,y)'.
Values of 0, 0.5, and 1 specify left/bottom, middle and
right/top,
respectively."
But it looks like 0, 1 specify top, bottom respectively in the y
direction.
plot(1:4)
text(2,2, "adj=c(0,0)", adj=c(0,0)...
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", "...
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 following {2nd bug ?} :
par(las=3); plot(1:10); mtext("mtext")
Martin Maechler <maechler@stat.math....
2008 Oct 24
0
[PATCH] linux/x86-64: fix unwind annotations
...y: Jan Beulich <jbeulich@novell.com>
--- head-2008-10-24.orig/arch/x86_64/kernel/entry-xen.S 2008-10-24 11:32:19.000000000 +0200
+++ head-2008-10-24/arch/x86_64/kernel/entry-xen.S 2008-10-24 11:33:13.000000000 +0200
@@ -121,9 +121,9 @@ NMI_MASK = 0x80000000
.macro CFI_DEFAULT_STACK start=1,adj=0
.if \start
CFI_STARTPROC simple
- CFI_DEF_CFA rsp,SS+8-(\adj*ARGOFFSET)
+ CFI_DEF_CFA rsp,SS+8 - \adj*ARGOFFSET
.else
- CFI_DEF_CFA_OFFSET SS+8-(\adj*ARGOFFSET)
+ CFI_DEF_CFA_OFFSET SS+8 - \adj*ARGOFFSET
.endif
.if \adj == 0
CFI_REL_OFFSET r15,R15
@@ -133,20 +133,20 @@ NMI_MASK = 0x80...
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
...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 to this (simplified) one:
par(mfrow=c(2,4))
for(aux in 1:4){
plot(1,1)
mtext("1st treatm", cex=1, line=1.7, adj=0.1, col=1)
mtext("2nd treatm", cex=1, line=1.7, adj=0.5, col=2)
mtext("3rd treatm", cex=1, line=1.7, adj=0.9, col=3)
mtext("1st treatm", line=0.6, adj=0.1, col=1)
mtext("1st treatm", line=0.6, adj=0.5, col=1)
mtext("1st treatm", line=0.6, adj=0.9,...
2017 Oct 20
1
create a loop
...ot;group"), summarise,
N = length(group),
mean = mean(temp, na.rm=TRUE),
sd = sd(temp),
se = sd / sqrt(N),
variance=sd^2
)
#merge two datasets (dat1 and dat2)
Rep1<-merge(Summary.Rep1, dat2, by="group")
#calclate adjusted mean. variance
Rep1$adj.mean<-(Rep1$total.pop*Rep1$mean)/sum(Rep1$total.pop)
Rep1$adj.var<-(Rep1$variance)/(Rep1$sampled.pop/(1-(Rep1$sampled.pop/Rep1$
total.pop)))
Rep1$over.adj.var<-(Rep1$total.pop/sum(Rep1$total.pop))^2*Rep1$adj.var
Rep1$total<-Rep1$adj.mean*(Rep1$total.pop...
2013 Jan 27
2
rpart
...????? Hsa.37937 < 379.39?? to the right, improve=13.75358, (0 missing)
????? Hsa.692.2 < 842.305? to the right, improve=12.38710, (0 missing)
????? Hsa.1832? < 735.805? to the right, improve=11.90495, (0 missing)
? Surrogate splits:
????? Hsa.692.2 < 1086.655 to the right, agree=0.903, adj=0.571, (0 split)
????? Hsa.3306? < 170.515? to the left,? agree=0.887, adj=0.500, (0 split)
????? Hsa.601?? < 88.065?? to the left,? agree=0.887, adj=0.500, (0 split)
????? Hsa.692?? < 1251.99? to the right, agree=0.871, adj=0.429, (0 split)
????? Hsa.831?? < 281.54?? to the left,? agre...
2017 Apr 11
2
Poor documentation for "adj" and text()
Hi!
(I'd like to be able to access your bugzilla, BTW)
The documentation for parameter "adj" of text() in R 3.3.3 is hard to understand (unless you know what it does already):
"adj
one or two values in [0, 1] which specify the x (and optionally y) adjustment of the labels. On most devices values outside that interval will also work."
What is the meaning of the values? I...
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
the centre of the text, so I'm not sure exactly how it works.
I could hack it and change "adj" accordingly but this is part of a function
which I need to generalise. So it ne...
2008 May 30
2
Including a tilde in a plotmath-type call
Suppose I have a plot
plot(1:10, pch = "")
And I want some text to indicate a Normal distrubition. I could do
this:
text(5, 6, substitute(X~~~~N(mu, sigma^2)), adj = 0)
text(5.35, 6, "~", adj = 0)
But that's clumsy, and depending on your plotting device, might not even look
sensible. I'd prefer to be able to do it more directly and
simply the way these do:
text(5, 1, expression(X %~~% N(mu, sigma^2)), adj = 0)
text(5, 2, expression(X %pro...
2018 Sep 14
2
Poor documentation for "adj" and text()
...quot;Details". However, the descriptions in "Arguments"
> should give enough information that a user can get the function to do
> something predictable in at least one situation, and I feel this is
> not the case at present.
>
> I tried to fix the wording so that 'adj' and 'offset' are no longer
> confusing to new users (or to me, every time I forget what they mean).
>
> I also fixed the paragraph on rotated text; it is more correct now, at
> least for X11-cairo.
>
> I hope that someone in the Core Team can look this over and appl...
2010 Mar 27
1
string width calculation
Colleagues,
I am trying to create a PDF document in which I use margin text with two different fonts. The resulting text might be:
XXXXXyZZZ
where X and Z are one font and Y is the other.
My plan was to do this in the following manner:
mtext("XXXXX ZZZ", cex=2, adj=0.5, family=SOMEFONT)
mtext("Y", cex=2, adj=??, family=DIFFERENTFONT)
My question regards how to calculate "adj" for the second string.
I tried the following (different strings here and the same font was used for both strings - even under these circumstances, it does not work...
2002 Sep 16
0
mosaicplot enhancements (PR#2023)
...cex.axis = 0.66, las = par("las"),
18,19c22,24
< mosaic.cell <- function(X, x1, y1, x2, y2, off, dir, color, lablevx, lablevy,
< maxdim, currlev, label)
---
> mosaic.cell <- function(X, x1, y1, x2, y2, srt.x, srt.y,
> adj.x, adj.y, off, dir, color, lablevx, lablevy,
> maxdim, currlev, label)
50c55
< srt=0, adj=.5, cex=.66, this.lab)
---
> srt=srt.x, adj=adj.x, cex=cex.axis, this.lab)
110c115
< srt=90, adj=.5, cex=.66, this.lab)
--...
2008 Dec 22
0
Align legend title
...end("topright", legend=c("a shor text", ""), lty=c(1, 2), title="Function + some more text")
## Left
legend("left", legend=c("a long text, a long text, a long text", "y = 2.0 * x"), lty=c(1, 2), title="Function", title.adj=0)
legend("right", legend=c("a shor text", ""), lty=c(1, 2), title="Function + some more long text", title.adj=0)
## Right
legend("bottomleft", legend=c("a long text, a long text, a long text", "y = 2.0 * x"), lty=c(1, 2), title...
2018 Sep 14
0
Poor documentation for "adj" and text()
...tions in "Arguments" should give enough
>> information that a user can get the function to do
>> something predictable in at least one situation, and I
>> feel this is not the case at present.
>>
>> I tried to fix the wording so that 'adj' and 'offset' are
>> no longer confusing to new users (or to me, every time I
>> forget what they mean).
>>
>> I also fixed the paragraph on rotated text; it is more
>> correct now, at least for X11-cairo.
>>
>> I h...
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 'ad...
2002 Nov 20
0
Plots by subject
...type='p', xlab='',
cex=1.4)
axis(4)
mtext("Viral load (log10) [--o--]",line=3, 4, outer=F, cex=0.7)
detach(lab)
# Genotype table
gt <-read.xport('gt')
attach(gt)
spd <- as.date(SPECDATE)
par(mar = c(0, 1, 1, 1) + 0.1)
plot.new()
text(0,1,paste(?GT date?), adj=c(0,1) , font=2)
text(0.15,1,paste(?Duplicate?), adj=c(0.5,1) , font=2)
text(0.3,1,paste(?PI mutations?), adj=c(0.5,1) , font=2)
text(0.7,1,paste(?RT mutations?), adj=c(0.5,1) , font=2)
text(0,0.85,paste(spd, collapse='\n\n'), adj=c(0,1))
text(0.15, 0.85,paste(DUP, collapse='\n\n'),...
2008 Oct 20
2
pass longer arguments to adj of text()
Hi,
text()'s pos does handle more dimensional labels, while adj does not -
or how can I pass an array to text() and use the adj argument (skyblue
text)?
plot(-1:1,-1:1)
text(c(0,0),c(0,0),c("a","b"),pos=c(1,2),col="red")
text(c(0,0),c(0,0),c("a","b"),adj=cbind(c(1,2),c(1,1)),col="skyblue")
Thomas
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 ?
btw:...