similar to: axis() ignores supplied value of argument mgp[3]?

Displaying 20 results from an estimated 5000 matches similar to: "axis() ignores supplied value of argument mgp[3]?"

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
2002 Apr 16
1
Can one aply 'mgp' to individual axis?
Dear R-wizards! I want to move the axis label of the y-axis a little bit more apart from the border of the plot (otherwise, it would overlap with my horizontal numbering). 'par(mgp(3.5, 1, 0))' does it properly. Unfortunately, it also moves the x-axis label which does not look good. Is there a way to specify 'mgp' for each axis separately or is there another way to move just
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
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,
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 =
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 =
2000 Feb 15
1
par: mar and mgp dead?
I just installed 99.0a, and I can't set mar and mgp: > par(mar(2,2,.1,.1)) Error in par(mar(2, 2, .1, .1)) : couldn't find function "mar" I had the same happen with mgp. Are these bugs or a problem in my installation (everything else seems OK)? Is R core going to kill mar and mgp? If so, how should I fix the huge margins and huge space between axis title and axis? Try this
2011 Apr 06
0
mgp.axis.labels
Hello, I am trying to use mgp.axis labels to locate the x-xis at a different distance from the one specified for the y-axis. I know I could use other functions such as mtext or axis. But I am curious to know about how to use 'mgp'axis.labels' from the Hmisc package. I tried following the example in the documentation without success. Sample code: x<-1:10 y<-1:10
2001 May 09
2
R help files -> S-Plus; par('mgp')
Thanks to Brian Ripley I have been using R utilities for some time for converting S-Plus UNIX nroff help files to .Rd to .html files. .Rd files seem to be the most natural format for help files and this format is probably easier to maintain than nroff, so I would like to start using .Rd files as my master documentation format if anyone has a utility for going from .Rd to nroff. I guess I could
2006 Jul 11
2
Dropping unused levels of a factor that has "NA" as a level
Is this a bug? > f1 <- factor(c("a", NA), levels = c("a", "NA") ) > f2 <- f1[, drop = TRUE] > f2 [1] a <NA> Levels: a <NA> I would have expected f2 to have only one level, "a". It seems to me that the code in [.factor does not follow the advice in help("factor") on how to set factor codes to be
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
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
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
2001 Nov 09
1
Installing packages
Hello, I have upgraded from Mandrake Linux 8.0 to Mandrake 8.1 and try to reinstall my favourite R... Everything is OK for the base software but I have trouble to get some packages installed. Specifically, for some packages, a "collect2" binary seems to be necessary during the compilation/linking process of the library, and LD complains about not finding it : Installing source
2010 Jan 10
3
How to control spaces between axis, tick and label in xyplot or xYplot?
Dear R users, I encounter a problem regarding space control in xyplot. Basically, I want to control spaces between label, tick and axis. I remember there is a function called mgp in general plot. Is there a similar function for xyplot or xYplot? Below is my basic code: myplotkid<-xyplot(expected_offspringnumber~afr|decade,groups=SES,data1,
2003 Oct 14
3
NA %*% 0 == 0 (PR#4582)
Full_Name: J . R. M. Hosking Version: 1.8.0 OS: Windows 2000 Submission from: (NULL) (129.34.20.23) On R 1.8.0 (and on R 1.5.1), Windows binary: > NA %*% 0 [,1] [1,] 0 This is surprising. Is it a bug? Note that > 0 %*% NA [,1] [1,] NA > NA %*% 1 [,1] [1,] NA > NA * 0 [1] NA as expected.
2011 Sep 12
1
Centering lines on barplot centers.
Hello, I am trying to port one of my plotting S+ functions to R and I am having difficulties!!! I am including here only the troublesome code! I first produce a barplot, saving the positions of the bar's centers. par(mar = c(6.1, 5.1, 4.1, 4.1), mgp = c(3, 3.0, 0)) ticks.loc <- barplot(sum.of.weights, col = 5, xlab = "", ylab = "", axes =
2010 Feb 07
4
x-axis plot problem
Hi all, I tried to have plot of many vector in one plot and i have got a nice plot but i have problem with x-axis. I want to have month and year only(Jul.07 means July 2007) in x-axis without appearing other number behaind it. I would appercit any help. The R code: F<-c(7.49,6.91,6.78,6.99,7.44,7.42) M<-c(4.81,4.51,5.21,4.65,4.75,3.86) P<-c(7.49,15.03,15.19,15.32,15.42,15.45)
2005 Aug 18
1
axis label justified
Hi, I am trying to make my axis labels left justified, and have used adj=0 in the axis() without success. Can anyone have a suggestion? axis(2,at=1:50,labels=paste('a',1:50,sep=''),las=2,cex.axis=0.5,adj=0,tck=0,mgp=c(3,0.5,0)) Thanks