similar to: axis label config mgp

Displaying 20 results from an estimated 1000 matches similar to: "axis label config mgp"

2009 Jul 15
3
Axes origins and labeling
I have re-labeled tick marks on the x axis. The problem is that by using axes=FALSE, the axes disappears and when they are called back using axis(side=1)..etc. the axis on sides 1 and 2 do not meet at the bottom left corner of the graph. I would also like to have the 3rd and 4th axes in there as well, all meeting in their respective corners. par(mfrow=c(1,2)) gut<-c("Full",
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 =
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#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 =
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
2008 Feb 19
2
addition of matrix
Thank you ahead of time for help with this. I have two matrices X [,1] [,2] [,3] [,4] [,5] [,6] [1,] 660 693.00 726.0 759.00 792.0 825.00 [2,] 548 575.40 602.8 630.20 657.6 685.00 [3,] 676 709.80 743.6 777.40 811.2 845.00 [4,] 763 801.15 839.3 877.45 915.6 953.75 [5,] 768 806.40 844.8 883.20 921.6 960.00 [6,] 692 726.60 761.2 795.80 830.4 865.00 [7,] 657 689.85 722.7
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
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 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 Apr 22
1
subset and boxplots
R users, This should be simple, but I cannot figure it out. I import test.csv, then create a subset for "brook_dis". When I plot (week, R) I get a nice boxplot, but along the x axis, there are weeks a, b, c along with h and nh. Thank you ahead of time. keith rm(list=ls()) cond.exp1<-read.csv("condition/test.csv",header=TRUE) sub<-subset(cond.exp1,
2008 Feb 15
1
predict.lm with matrix as newdata
Z is a matrix and when I run the following line, it creates a prediction estimate using each column, how can I get it an estimate for each individual number. I have tried changing Z to a data.frame, but this does not do it either. model.lm<-lm(w~x) pred.est <- predict.lm(model.lm, data.frame(x=Z)) Thanks in advance, keith -- Keith Cox, Ph.D. Sitka Sound Science Center Fisheries
2008 Feb 19
0
Matrix addition
Matt, I know you are probably busy with work, but I cannot help buy asking you these R questions. If it is bothersome, please let me know and I will stick with the R help... but I have two matrices X [,1] [,2] [,3] [,4] [,5] [,6] [1,] 660 693.00 726.0 759.00 792.0 825.00 [2,] 548 575.40 602.8 630.20 657.6 685.00 [3,] 676 709.80 743.6 777.40 811.2 845.00 [4,] 763 801.15 839.3
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
2008 Feb 15
2
wire.frame tick labels from matrix
Dear R Users, close to the end of this I used wireframe to create a 3D plot from a matrix. The x and y axis tick labels (1-6) for each were created from the matrix being a 6X6 matrix. I need the axis tick labels to be the row and column headings which you can see in the output (mat.x). I have tried several work arounds, but they have not been successful. Thanks in advance. keith rm(list=ls())
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
2001 Apr 19
2
controlling plot spacing?
Suppose I have the bottom axis of a plot that looks like: ----+----+----+----+----+----+---- | | | | | | 1 2 3 4 5 6 Axis title 1. How do I reduce the gap between the ends of the ticks and the axis labels (numbers)? 2. How do I vary the gap between the bottom of the axis labels and the top of the axis title? I have looked in various places
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],"
2004 Sep 30
2
pointsize in png graphics
Dear all, I'm trying to produce 2 png files, one consisting of an image plot and a color-table (also an image plot) and the other one consisting of 4 image plots and a color table. I'd like the color table to be exactly the same. The way I proceded is the following: for one plot and the color-table png(file = png.file, width = 650, height = 800, pointsize = 16) layout(matrix(c(1, 2),
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