similar to: Problem with mtext

Displaying 20 results from an estimated 20000 matches similar to: "Problem with mtext"

2011 Nov 15
1
Plot alignment with mtext
I would like the text plotted with 'mtext' to be alighned like it is for printing on the console. Here is what I have: > print(emt) ME RMSE MAE MPE MAPE MASE original -1.034568e+07 1.097695e+08 2.433160e+07 -31.30554 37.47713 1.5100050 xreg 1.561235e+01 2.008599e+03 9.089473e+02 267.05490 280.66734
2008 Jul 18
1
problem with putting text in outer margins (mtext outer=TRUE)
Hi there, I'm trying to get some text in the outer margins of my plots and am having trouble - the margin text is overlapping my plots, even though the outer margin I'm trying to put it in is very big. I've simplified my problem down to this: ------------------------- X11(width=7.5,height=10) par(mfrow=c(6,1),oma=c(20,0,20,0), mar=c(0,3.1,1,2.1)) for (i in 1:6) {
2009 Apr 06
0
mtext problem - grainy and massive file size
Hi Team, I'm on a mac, 0SX 10.5.6, R 2.7.2. I consistently make pairs plots and use mtext() to put labels on top of the plot in the outer margin. All of a sudden, this text has become really grainy in the final product and is making huge files. I have no idea why this has just started happening. The only thing I've done lately is install the new version of GIMP and run the script to
2000 Jan 10
1
'at' parameter in mtext(.., adj=0, outer=T) (PR#396)
Depending on the setting of par()$usr, the 'at' setting in mtext(.., adj=0, outer=T) may cause the text to appear in an anomalous position (e. g. in the first instance below, at the left of the plot region rather than at 'at=0' in the figure region), or the text may not appear at all. If one does not set the 'at' parameter the text appears (with 'adj=0') on the
1998 Feb 04
1
R-beta: Functionality of tck=1, and mtext()
In the version of R that I am running I have found two advertised features that don't appear to work correctly: Version 0.61.0 Alpha (December 21, 1997) (installed using r-base-0.61.0-2.i386.rpm) 1. mtext adj parameter is seriously offset to the right. For example: > par(oma=c(0,0,3,0)) > mtext("Try this", side=3, outer=T) # nothing is observed on x11 > mtext("Now
2012 Jun 02
1
mtext bug
Sir, I have hit a the limits of my understanding of text / par / opar etc... I have a few related xts data frames which have multiple columns, and have written a for-loop to make a set of charts - however i do not get any margin text when i run the loop. when i test the code outside of the loop the margin text appears - however when i run the loop the margin text does not appear ... what gives?
2007 Apr 27
1
Write text in the
Hey Felix, So basically what you want is a figure containing a block of four plots, with a main title for the figure? If that's the case then something like this should work: # BEGIN CODE # par(oma=c(0,0,1,0), mfrow=c(2,2)) for(i in 1:4){ plot(NA,xlim=range(0,10),ylim=range(-5,5)) title(paste("Plot ",i,sep="")) } par(mfrow=c(1,1), oma=c(0,0,1,0)) mtext("Main
2009 Nov 30
1
Plotting color.legend() outside of plot region
Dear List, I am trying to plot a color.legend() in the right outer margin of my device region. I have read multiple threads on the subject and still can't get it right. I have stolen an example from one of the threads to demonstrate my problem. I have extended the outer margin using par(oma()), and have used par(xpd=NA) to tell it to plot in the device region. I can get the legend to plot
2000 Aug 22
1
adj parameter in mtext
I am trying to adjust the sigma symbol down in the y direction with the following command but R recycles the sigma and puts another at -0.1 in the x axis. Any suggestions would be appreciated. mtext(expression(sigma),1,outer=TRUE,adj=c(0.5,-0.1)) Regards Ross Darnell -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2009 Oct 12
3
help with the use of mtext to create main title over multiple plots
I'm trying to use mtext to create a main title over multiple plots. Below is a simple self-contained example and my sessionInfo (I should note I've also tried this with R-2.8.1 with the same results). When I execute the code chunk below, I get the plots, but no title. I've tried this using the screen driver, pdf, and postscript. I've used different sizes of paper. I suspect I am
2009 Oct 05
0
Help in the mtext function
Hi Can anyone please help me in understanding the utility of "padj" and "outer (logical)" values in the '*mtext function*' given below are the output I generated on using the below code which is different from the formula description on r help > par(mfrow=c(2,1),xpd=NA) > y1 <- rnorm(100) > plot(y1,ann=F,axes=F,type="l") >
2004 Aug 10
0
Check failed after compilation (PR#7159)
Full_Name: Madeleine Yeh Version: 1.9.1 OS: AIX 5.2 Submission from: (NULL) (151.121.225.1) After compiling R-1.9.1 on AIX 5.2 using the IBM cc compiler, I ran the checks. One of them failed. Here is the output from running the check solo. root@svweb:/fsapps/test/build/R/1.9.1/R-1.9.1/tests/Examples: ># ../../bin/R --vanilla < stats-Ex.R R : Copyright 2004, The R
2012 Feb 07
1
Problem with plotting a square 1 x 3 plot and placement of outer margin text
Dear R-helpers, Please see the attached plot. The problem is that I have too much space between the x-axis label (which is mtext in an outer margin) and the plots. My par settings for this plot are: >par(mfrow=c(1,3),oma=c(2,2,2,2),mar=c(5.1,4.1,4.1,2.1),pty="s") >#here is the code that produces the three plots, which I have deleted for simplicity >mtext("Log Wetland
2007 Sep 02
2
Different behavior of mtext
Dear R Users, I am quite surprised to see that mtext gives different results when it is used with 'pairs' and with "plot'. In the two following codes, it seems that the 'at' argument in mtext doesn't consider the same unit system. I would appreciate your comments on this issue. Sebastien ##### Pairs mydata<-data.frame(x=1:10,y=1:10) par(cex.main=1,
1999 Nov 23
1
"outer" argument in mtext (PR#340)
mtext(..., outer = TRUE) does not seem to center the text in the outer margins as it did previously. Reproduce with example(plot.profile.nls, package = "nls") On versions of the development sources before November 17 this produced main and subtitles that were centered horizontally on the page. After that the main title (from mtext("..", side = 3, outer = TRUE)) is centered
2013 Jan 07
1
Changing mtext direction, or using text for the margin?
Hi all, I have read through the archives, but can't find a solution to this problem. I need the text direction on "dependent B", plotted in margin 4, to go top to bottom (opposite what it is now). Here's some sample code: #plot with mtext example par(mgp = c(2,1,0), mfrow=c(2,2), las=1, mar=c(2,2,2,2), omi= c(0.5,0.2,0,0.2)) a<-1:10 b<-7:16 c<-21:30 plot(a~b,
2012 Oct 23
2
multi-panel figure: overall title for each row
Dear all, I have a 3x2 plot and in addition to the title of the individual plots I would like to have an overall title for each row. I managed to get an overall title for the whole plot matrix with mtext: par(mfrow=(c(3,2)), mar=c(6.4,4.5,4.2, 1.8), oma=c(0,0,3,0)) for (i in 1:6) barplot(sample(1:10,5), main=paste("Plot #",i)) mtext("Overall Title Row 1", outer=TRUE) but I
2004 Oct 20
2
common axis label in multiple plot area
Hello A very short question: Using multiple plots with par(mfrow=c(3,3)), how can I get R to indicate one common y- and x-axis label? I tried to use text() in par, but this is then overwritten when I plot the graphs. -- Sebastian Leuzinger Institute of Botany, University of Basel Schönbeinstr. 6 CH-4056 Basel Ph. 0041 (0) 61 267 3511 fax 0041 (0) 61 2673504 email: Sebastian.Leuzinger@unibas.ch
2003 Jan 17
2
Re: Universal legend in plot
Dear R-users: I asked a question on how I can have a universal legend in a plot and received the following result. I tried using "layout" but I can't seem to work on the "empty" plot (where I have to have the legend). I tried "oma" but I couldn't improve the quality of the plot, and that I didn't know how to specify all the line types using the
2002 Apr 02
2
Trouble with R and cronjobs
I am having problems with trying to run R from a crontab job. I have a c-shell file that calls the R script. I get an error concerning the X11 display (see below). I have included the c-shell file and the output from the crontab job. It appears that my DISPLAY environmental variable is not set. Is that necessary, even when the output of the plot command is to a png file? Can someone tell me how to