Displaying 20 results from an estimated 10000 matches similar to: "axis ignores srt/crt (PR#249)"
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
2006 Nov 07
1
R freezes with text(...., srt = -1e-8) (PR#9347)
Full_Name: Emmanuel Paradis
Version: 2.4.0
OS: Linux
Submission from: (NULL) (193.49.41.124)
Adding text to a plot makes R freeze if 'srt' is given a very small negative
value, eg:
plot(1, type = "n")
text(1, 1, "some text....", srt = -1e-8)
But if 'srt = -1e-6' (or smaller) or 'srt = -1e-19' (or greater), this works.
This seems to be OS-dependent:
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
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
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
2007 Aug 16
1
to combine bwplot + srt option?
Hi R-users,
Could someone help me to combine bwplot and srt option (exemple srt = 45
degree or srt 90 degree)? My graphic contains 146 boxplots, I would like
to label all of them. As you know, labels are not readable.
Thank you for your help in advance!
Lassana KOITA
Chargé d'Etudes de Sécurité Aéroportuaire et d'Analyse Statistique /
Project Engineer Airport Safety Studies &
2003 Jan 24
1
problem with srt vector in xyplot {lattice}
[ R 1.6.1 ]
PROBLEM
The plot of the appended code does produce
a postscript file which is not interpretable
by gv under Linux.
REMARK
If the srt argument is commented out or set to a constant
like 45 or 90, the ps file becomes interpretable.
CODE
xytest <- function( ... ){
with( airquality, { print( xyplot(
Ozone ~ Temp | Month
, panel
2006 Feb 04
2
srt --- slope text with function?
[resent, plus small addition; I do not understand why gmail sent a
weird charset.]
Dear R wizards:
I would love to write a general function that matches the slope of a plotted
line in an xy-plot at a particular x,y location. something like
x<- (1:10)^2; y<- 40:50;
plot( x,y, type="l", xlim=c(0,90) )
srt.at5 = text.at.current.plot.with.slope( x, y, 5);
text(
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
2009 Aug 27
2
setting par(srt) according to plot aspect ratio
How can I look up the aspect ratio of a plot, so I can use that to correctly
adjust the angle of text which is supposed to be parallel to a line in the
plot?
The following example code works for a 1:1 aspect ratio, but puts the text
at the wrong angle if the plot region is short and wide or tall and narrow.
I can't find a par() component containing the plot aspect ratio. It will
be for
2002 Oct 22
1
axis
I am using R 1.6.0 on Windows 2000 Professional. I am trying to rotate
x-axis
labels using "srt = 45, adj = 1", but nothing is happening. It is like the
axis
command is ignoring the "srt" and "adj" arguments.
Thanks,
Mike Lane
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2016 Mar 25
1
Network UPS Tools for APC Smart-UPS 5000VA 230V SRT
Dear,
Currently, I'm looking for a UPS that can support NUT. I found an APC
Smart-UPS 5000VA 230V SRT, but I'm not 100% that is supported.
*APC Smart-UPS 5000VA 230V SRT*
http://www.apc.com/shop/nl/nl/products/APC-Smart-UPS-SRT-5000VA-230V/P-SRT5KXLI
I searched in http://networkupstools.org/stable-hcl.html and I found that
you support "*APC Smart*" I would just to confirm
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
2012 Feb 02
2
Vertical string with horizontal letters
I'm trying to format text on a plot such that the string is vertical but the letters are horizonal. I tried
text(1,1,label="output", srt=270)
This gives the string rotation I want, but that rotates the entire "output" so the letters are also rotated. I've also tried
text(1,1,label="output", srt=270, crt=270)
to no avail. par()$crt doesn't seem to affect
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
2006 Jun 08
1
Rotate numbers on the Y axis on a multiple Boxplot chart
Hello All,
I am trying to format a box plot chart for a report so it matches other
charts I have created in other software programs. My problem is that I
need to rotate the values on the Y axis by 45 degrees, I have tried to
use the srt parameter but with no luck?
Does anybody have any suggestions?
Regards,
Daniel
My syntax is as follows:
2002 Nov 15
1
Plotting in the margin
Hi,
I would like to place a line (tilted at an angle) in the margin of an R
plot. Is there any way to place such an annotation outside the plotting
area?
As an alternative, being able to plot a rotated character (the pipe, |) in
the margin would be sufficient. The problem is that mtext doesn't work
with the srt option.
As a further alternative, if I could put a legend in the margin, I
2023 Mar 30
2
single character in R, and how to manipulate it
Hi there,
I just noticed that "crt" is a graphical parameter, which is stated as follows in the help page of "par":
A numerical value specifying (in degrees) how single characters should be rotated. It is unwise to expect values other than multiples of 90 to work...
However, I did not find any code example to demo the usage of "crt", and even know how to present a
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)
2019 Jul 17
2
ALTREP wrappers and factors
Hello,
I?m experimenting with ALTREP and was wondering if there is a preferred way to create an ALTREP wrapper vector without using .Internal(wrap_meta(?)), which R CMD check doesn?t like since it uses an .Internal() function.
I was trying to create a factor that used an ALTREP integer, but attempting to set the class and levels attributes always ended up duplicating and materializing the