Displaying 20 results from an estimated 6000 matches similar to: "Changing the position of label title and rotating the title"
2007 Aug 08
2
Relocating Axis Label/Title --2
Apologies for the previous mail (I sent it off too early by mistake).
This is the correct example:
rm(list=ls())
D_mean<-seq(-5,5,length=100)
y<-exp(-D_mean^2/5)
pdf("my.pdf")
plot(D_mean,y,type="l",yaxt="n",lty=2,lwd=2,col="black",
ylab = list(expression(paste(dN/dlogD[agg]," ["*cm^-3*"]"))),
xlab = expression(paste(D[agg],"
2002 Jul 01
3
manipulating axis labels in grid and lattice
I am trying to use wireframe at the moment and the axis labels are
overlapping with the tick labels. It seems that gpar does not yet
utilize the mgp argument. Is there anyway to manipulate the position of
the axis labels?
The best I can manage so far is to manipulate the cex so as to shrink
everything down.
thanks, Carlo Maley
--
Dr. Carlo C. Maley
Staff Scientist
Fred Hutchinson Cancer
2011 Oct 16
1
mgp and axis title positions
Hi all,
I consider myself a somewhat experienced user of R, but have struggled with this for a while now. to the point where I just end up pulling the entire graph together in powerpoint and fixing it up from there.
How does one adjust the horizontal/vertical positions of axis titles? I've tried using mgp in the par function, but that never produces anything satisfactory as x and y-axes are
2008 Aug 20
2
Positioning of axis titles
Hi,
I have created a plot using filled.contour() and have the problem that
one of the axis titles and an axis label are overlapping. I have tried
changing par()$mgp (with, e.g. par(mgp=c(4,1,0)) ), but this just
makes the title go off the screen. I can't work out how to make the
plot take up less space in the window, so I can hopefully change mgp
and sort the problem. Is changing mgp the only
2004 Oct 27
4
ploting axes and rotating strings
Hello!
I have two question that rose from trying to tacle the same problem in two
differnet ways.
What I want to do is to plot axes (only values or labels, no tick marks) in
such a way that 'cex' can be very small, text can be perpendicular to the
axis (as in axis(las=2) ) and the text is stil at the right position.
Let me demonstrate with a small example:
2009 Jul 16
1
axis label config mgp
I have long axis labels (8units) on the x axis and 2 unit number labels on
the y axis. I need to move the x axis title without moving the y axis
title. I have used mgp=c(title, label and line), but mgp moves both the x
and y titles. The following puts the y axis title way way out to the left.
Anyone know how to move just the x axis.
X11()
conif<-c("Control", "Switched
2007 Jun 19
2
axis labels in multiple plots
Hi,
I'am trying to make a multiple bar plot over a map and I'm having difficulties with the distance
between axes labels and the axis. Trying to control this with mgp does not help because it
controls both axes simultaneously. For example, with default values (mgp = c(3, 1, 0)) y-axis
labels are ok, but x-axis labels are not. Setting mgp = c(3, 0, 0) gives good x-axis labels but
the
2007 Jun 25
2
changing the position of the y label (ylab)
How can I change the position of the ylab, after
enlarging the margins with par(mar=...)?
Here is the relevant code snippet
----
par(mar=c(5.1,5.1,4.1,2.1))
plot(c(1979,2003),c(40,50),ylim=c(1,73),lab=c(20,10,1),pch=21,col='blue',bg='blue',axes=FALSE,xlab="Years",ylab="Onset/Withdrawl
Date",font.lab=2)
box()
axis(1,las=2)
2013 Dec 09
1
rebooting after many read/write
Hi,
I have 24 ocfs2 volumes on FC storage on 2 ocfs2 node connected 10gig
fiber ethernet as back to back. When I start copy process from the some
ocfs2 volumes to another ocfs2 volumes via rsync program, one node
crashes (I tried many times). There is no any log message in the log
files (kern.log, messages etc.). When I add the "sleep 6" line between
each copy process, no problem.
2009 Dec 11
3
`mgp[1:3]' are of differing sign (PR#14130)
Full_Name: Cornell Gonschior
Version: 2.10.0
OS: Linux
Submission from: (NULL) (212.201.28.40)
Hi,
in the introduction to R, you can find the following sentence in the par()
chapter:
"Use tck=0.01 and mgp=c(1,-1.5,0) for internal tick marks."
I thought that's nice, because I wanted to have tick marks and tick labels
inside and the axis title outside.
But:
> plot(z, las=1,
2010 Feb 05
1
About graphics
Hi,
I'm building a graph (barplot) in which the X axis label
disappears.
I tried to use the option mgp of par() and I could not get
the desired result.
Note that want the axis labels horizontally.
caes = c(37,20,19,16,75,103)
names(caes) = c("Pinscher", "Pastor \n Alem?o", "Poodle",
"Rottweiller", "SRD", "Outros")
caess =
2010 Aug 23
4
Draw a perpendicular line?
Hi,
I am trying to draw a perpendicular line from a point to two points.
Mathematically I know how to do it, but to program it, I encounter some
problem and hope can get help. Thanks.
I have points, A, B and C. I calculate the slope and intercept for line
drawn between A and B.
I am trying to check whether I can draw a perpendicular line from C to line
AB and get the x,y value for the point D
2016 Apr 28
1
polygon angle option perpendicular to axis
Thanks for the question. Here is a sample of the code for my plot:
Top = c(34, 39, 42, 45, 46, 41, 41, 40, 43, 38, 33, 33)
Bottom = c(24, 29, 32, 36, 32, 34, 32,41, 40, 39, 29, 24)
plot(1,1, col = "white", xlim = c(1.3,11.7), ylim = c(0,80), axis = FALSE, xaxt = "n")
axis(1, at = c(1:12))
polygon(c(c(1:12),c(12:1)), c(top, bottom), col =
2010 Oct 05
2
Plotting x-axis labels perpendicular to the axis
Hi,
The following command: axis(1, at= 1:50, labels= sampleNames(data)) produces
an X-axis with 50 ticks and labels drawn from the sampleNames namespace.
Problem is the labels at each tick are printed parallel to the x-axis and
thus run into each other. How do I specify for the labels to be printed
perpendicular to the x-axis?
Thanks in advance.
Anjan
--
===================================
anjan
2016 Apr 28
0
polygon angle option perpendicular to axis
Tena koe Simon
plot(1:10, 1:10, type='n')
polygon(c(2,3,6,8), c(2,5,5,3), density=20, angle=90)
polygon(c(2,3,6,8), 5+c(2,5,5,3), density=20, angle=0)
I don't understand your problem. Perhaps if you "provide[d] commented, minimal, self-contained, reproducible code" it would help.
HTH ....
Peter Alspach
-----Original Message-----
From: R-help [mailto:r-help-bounces at
2008 Jul 19
1
axis() ignores supplied value of argument mgp[3]?
It seems that when an argument 'mgp' is supplied to axis(),
the mgp[2] value (position of tick mark labels) is honoured
but the mgp[3] value (position of axis line) is ignored.
Example:
plot(1:5, xaxt='n', ann=FALSE)
par(mgp=c(0,2,1))
axis(1, at=2:4, mgp=c(0,-2,-3))
Axis line is plotted at margin line 1, tick mark labels at line -3.
Is this a bug?
J. R. M. Hosking
2003 Dec 24
1
par(mgp) - unexpected behaviour (PR#6045)
Full_Name: Nicholas Boers
Version: 1.8.1
OS: Windows XP Home Edition, Debian GNU/Linux 3.0
Submission from: (NULL) (24.68.84.10)
mgp[2] specifies the axis labels' margin line relative to that of the axis line
(mgp[3]). The `par' help does not document this behaviour.
The following code demonstrates my observation:
plot.new();
par(mgp = c(3, 2, 1));
box();
title(xlab =
2007 Apr 28
3
Perpendicular symbol in plotmath?
Hey,
Does anyone know of an equivalent to the LaTeX \perp (perpendicular)
symbol for adding to R plots? Parallel is easy enough ("||"), but I
haven't been
able to find a way of adding perpendicular. The plotmath documentation
doesn't mention how to do it, so I'm inclined to think that it doesn't
exist - but surely there must be some way of achieving the desired
result,
2001 Feb 01
3
Rotated mtext
I seem to remember this coming up before, but I can't find it any messages I've
saved or in the archives (searching by subject). I want to rotate mtext so that
it's perpendicular to the right side. I tried srt=90 and lots of other values,
but it seems to be ignored. Is there a way to do this?
______________________________________________________________________
Stuart Luppescu
2003 Dec 24
1
par(mgp) - unexpected behaviour (PR#6046)
Full_Name: Nicholas Boers
Version: 1.8.1
OS: Windows XP Home Edition, Debian GNU/Linux 3.0
Submission from: (NULL) (24.68.84.10)
mgp[2] specifies the axis labels' margin line relative to that of the axis line
(mgp[3]). The `par' help does not document this behaviour.
The following code demonstrates my observation:
plot.new();
par(mgp = c(3, 2, 1));
box();
title(xlab =