Displaying 20 results from an estimated 8000 matches similar to: "axis label rotation"
2006 Jun 27
1
rotate text using mtext
Hello,
I wish to write a label to the right-hand side of a plot (side=4) using
mtext, with the text facing inwards - that is, rotated 180 degrees from the
default orientation. How might I do this? (I've tried experimenting with
las but no luck.)
Thanks,
Rashmi
Rashmi Mathur
Master's Candidate
Fisheries Science and Management Research Group
School of Resource and Environmental
2003 Aug 16
1
equivalent of Splus command axis(..., srt=45, adj=1) in R
Dear R-users
moving from Splus to R (under Windows), I notice that command "srt" within a
plot in the original Splus code is ignored by R.
For example, if a plot something and then include the line of code
axis(1, at=Time, labels=Text, srt=45, adj=1)
the srt=45 command within the axis() command fails to draw Text at 45
degrees on the x-axis in R but it works properly in Splus.
I will
2001 Sep 10
1
not safe to return vector pointer
Hello All,
I recently upgraded from R-1.1.1 to R-1.2.2.
I have an R function that uses .Call() to
return a list from C code. The C code
has the form:
SEXP function(SEXP var)
{
SEXP rlist ;
PROTECT(rlist = NEW_LIST(3)) ;
VECTOR_PTR(rlist)[0] = NEW_INTEGER(1) ;
VECTOR_PTR(rlist)[1] = NEW_STRING(1) ;
...
UNPROTECT(1) ;
return(rlist) ;
}
When I try to
2006 Oct 17
2
plotting text with very small negative rotation hangs (PR#9301)
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig308510A16A445880F353C5C9
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
to trigger the bug:
plot(0:1,0:1)
text(0.5,0.5,"abc",srt=3D-1e-9)
this doesn't happen for positive, small srt,
or for negative srt with magnitude greater
than about 1e-8 (the example in
2005 Jun 11
1
Wishlist: strwidth allow for rotation of text (PR#7931)
Hi,
This is not a bug, but an enhancement suggestion. "strwidth" only gives the
width of the text according to the x-axis user coordinates, and similarly
for "strheight". Even if the par setting "srt" is changed to rotate the
text, the resulting width (resp. height) is in terms of the non-rotated
text. Currently, if I want to know how much space to leave for
2001 Aug 02
1
mtext and srt
Hello:
I am trying to get some text at an angle in the margins of a plot. I was
accustomed under older versions of Splus to using srt in the mtext command,
but that seems not to work under R,
> version
_
platform i386-pc-mingw32
arch x86
os Win32
system x86, Win32
status
major 1
minor 3.0
2006 Feb 08
2
rotating axis / mtext labels
Hello list.
Is it possible to use par(srt=45) to rotate text by 45 degrees along the
x-axis of a plot. Using:
<code>
x_names<-c("C57 Nv", "C57 Vacc", "129 Nv", "129 Vacc", "IFNgR Nv", "IFNgR Vacc")
par(srt=45)
mtext(font=2, x_names, side=1, line=1, at=l, cex=1.2)
par(srt=0)
</code>
doesn't seem to work in R 2.2.0
2008 May 27
5
Rotated text on a regression line
Dear all,
I stumbled over a problem recently when trying to use srt with text() on a
windows device.
What I intended to do was to plot a simple regression line, and to rotate
a piece of text such that the text has the same angle as the regression
line.
However, the text is always plotted in a slightly wrong angle:
####
x=1:10 #create arbitrary x and y values
y=x*2-rnorm(1:10)
2002 Jan 30
1
Rotation of axis labels
Hi all,
I can I rotate the x-axis labels 45 degree in clockwise direction? I`ve
tried
> axis(1, ..., las=2)
but this gives labels vertical to the axis, and las=0 or las=1 always
parallel axis labels.
Thanks, Sven
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2009 May 04
2
rotate texts
Hi all,
I'm hoping to add texts into a plot. I'm using text() to do it. I wonder if
the text() allow me to make the text vertically printed?
Thanks in advance for help,
phoebe
[[alternative HTML version deleted]]
2008 Oct 13
3
rotating points on a plot
Anybody know how to rotate shapes generated with the 'points'
function? I'm trying to place points around a radial diagram such
that the y-axis of individual shapes are oriented with the radii of
the circle rather than the y-axis of the larger plot area. Perhaps
something analogous to the 'srt' and 'crt' functions for text that
appear under 'par'?
2009 Mar 26
3
How to rotate axis labels? 2009
Hi,
while searching for a solution i found many solutions in the internet.
But the postings seemed to be many years old and the workaround was a
dirty hack like this:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f
Now its the year 2009 and there might have been some improvement...
Does anyone know a nice and easy way to turn labels on the y axis in the
2001 Sep 13
3
OT: ps -> eps -> MS Word
I've created a bunch of postscript trees (post.rpart), which I subsequently
edit in Adobe Acrobat 4.05 (I need additional labelling that isn't easy to
add with R). After editing the labels and annotations using Acrobat, I
then export the file to Adobe's .eps format so I can insert the picture
into a Microsoft Word 2000 document. The .pdf file distilled from the .ps
file is
2006 Aug 24
5
xyplot tick marks and line thickness
Hello,
A made a xyplot using the lattice library in R (latest version).
The publisher of our paper has requested:
1. all tick marks should point inwards instead of outwards.
2. All lines should be thicker (lines, axes, boxes, etc. Everything). Lines is easy...I used: lwd=1.5 but what about the lines of the axes, and the lines that build up the plot itself?....?
Any
2003 Jul 31
1
Mac OS 10 (not X11) failure to rotate symbols (PR#3602)
In the following code the arrow symbols do not rotate with the text on
the Mac OS window, however the do rotate on X11 port on Mac OS.
(R version 1.71)
x <- c(0,10.)
y <- c(0,10.)
offset <- 3
centre <- 5
plot(x,y, xlim=range(x), ylim=range(y),type="n", xlab="",ylab="",
main="",xaxt="n",yaxt="n")
for (i in (seq(0, 340,
2001 Jun 11
1
rotate ylab
Hello,
I have an expression for the y axis, which I wish to rotate by 90
degrees (so that this label has the same orientation as for the x
axis). Thought the graphical parameter crt (or srt) would do the trick,
but haven't had any joy so far. Any ideas?
(Using Version 1.2.2, linux, redhat 7.0)
Cheers,
Rob.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2006 Apr 17
1
astcc and inwards billing
I (cannot sleep and I) am thinking if there is a way to make inwards
billing easy possible.
To dial out we use something like:
exten =>
_9011N.,4,DeadAGI(astcc.agi,${CALLERID(num)},${EXTEN:${TRUNKMSD}},${TARIFF})
(I have an extra field TARIFF, what allows me to use different prices
for different users)
To dial to a phone we use something like:
exten => 888888888,1,Dial(SIP/6001,20,tr)
2004 Sep 19
2
Effectively using a telco Type 102 Milliwatt Test line with ztmon itor -v to set txgain/rxgain in zapata?
I am trying to obtain optimum gain settings for a bank of analog lines
connected to a channel bank. My telco has provided a 'Type 102' test line to
use for incoming level calibration. This is functionally equivalent to app
Milliwatt(), but provides tone from the CO inwards.
Question is, how should one use this a 0dbm test source with ztmonitor? Am I
correct in understanding that a 0dbm
2011 Feb 25
1
question about "srt" argument in text() plotting function
Just wondering: it appears that "srt" does not accept a vector of
values, just a single value. I ended up using tapply() as the
following code snippet shows, so it's not a major problem. I was justa
little surprised that this argument (srt) differs from things like
"labels," "lty," "col," and so on, all of which accept (and recycle
as needed
2011 Apr 16
2
Rotating the x-axis labels of a barplot
Dear listserv,
Here is my latest formatting problem. I would like to rotate the x-axis labels
by 45 degrees on a _barplot_. Apparently this is slightly different from the
example given in the R FAQ, which is for rotating the x-axis labels on a
scatterplot
(http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f).
I have adapted that code, as best I could, and