similar to: R-beta: multiplot figure problems

Displaying 20 results from an estimated 3000 matches similar to: "R-beta: multiplot figure problems"

1998 Mar 25
0
R-beta: mfg weirdness
It seems there are problems with mfg, both the old version .61.2 and the snapshot .62. > x<-rnorm(100) > y<-rnorm(100) > y1<-x/y > x11() > par(mfcol=c(2,1)) > par(mai=c(.6,.6,.2,.2)) > plot(x,y,mfg=c(2,1,2,1)) I'm not sure if 2,1 is considered the top or the bottom position on the page, but whether you say mfg=c(2,1,2,1) or mfg=c(1,1,2,1), the first
2006 May 29
2
line over multiplot
Dear Listmembers, I do have a multiplot with 1 row and 4 columns (4 scatter plots with same x- and y-axe plotted in one row). I would like to draw a horizontal line across the whole multiplot at a certain y-value. Unfortunately the normal abline command stops between the plot. I hope my problem is clear and there is somebody who can help me Thanks in advance Thomas H.
2010 Nov 30
2
Adding text to a multiplot (via mfrow)
Hi I have created a set of 4 barplots using mfrow=c(2,2) and need to add a heading that spans the margin of the bottom 2 graphs. I have used locator(1) to find the coordinates but I dont seem to be able to add text anywhere on this multiplot. I would be really grateful if anyone could tell me if there is a simple method of achieving this. Many thanks Sam Jones -- View this message in
1998 Mar 26
1
R-beta: multiplot using fig
I followed Bill Venables's suggestion and tried to make a multiplot figure with fig (using R .62). > x<-rnorm(100) > y<-rnorm(100) > x11() > par(fig=c(0,2/3,0,1)) > plot(x,y) > par(fig=c(2/3,1,0,1)) > qqnorm(x) > postscript(file="twoplot.ps") > par(fig=c(0,2/3,0,1)) > plot(x,y) > par(fig=c(2/3,1,0,1)) > qqnorm(x) However
2009 Apr 17
1
multiplot plot spacing and text strip
Hi everyone, I have a certain requirement and I'm not sure what to do.I need to reduce the spacing between plots in a multiplot. Make them really close together such that they almost touch. Also, I need to add a rectangular strip under my plot(very close to it) such that the strip contains some text describing it. Any help is appreciated -- Rajesh.J [[alternative HTML version deleted]]
2004 Oct 25
2
par("usr") trouble in multiplot axis scaling
Hello, I'm blotting a series of growth curves into a multiplot environment created with layout(). since I want the four plots to be easily visually comparable, I do the following: #first plot plot(x,y,<stuff>) standarduser<-par()$usr ... <some fitting> ... lines(spline(x, <fitted_equation>)) #everything all right till here # second plot plot(x,y,<stuff>)
1999 Nov 24
0
problem with multiple figure postscript file
Hello all! I'm a newcomer to R, so please bear with me. My problem is the following: I'm trying to use R to do some geostatistics stuff (mostly kriging), and am having trouble printing a multiple figure. When I create a single figure (one image/contour command), it works fine. The instant I try to create a multiple figure file, I start getting postscript errors. I'm using the
1998 Mar 26
1
R-beta: mfg weirdness + future of graphics pars
Ross Ihaka writes: > > I just checked my S manual and it appears that layout > parameters like can "mfg" only be given in par(). Yes. pty is another, for example. > I think that in fact "mfg" is only meant to be queried. No. One use for setting mfg is to produce a page of plots in portrait orientation with, say, two small plots on the top half of the page
2005 Dec 09
0
Multiple Figure environment through Java
I am trying to create a .jpg file with multiple graphs on it. I am creating this file through a java servlet which connects to R using RServe. In the code below, col is an int array which has a list of the col numbers of the data file whose data i have to use for plotting. c=new Rconnection();
2009 Apr 30
0
plot scaling bug when using par(mfg)
Dear list, I've noticed a width/height scaling bug in multi-panel plots when you change the active plot using par mfg The underlying par setting that maps the full plot width (or height) to the numerical axis labels does not get updated when you change plots with par(mfg=...). Thus plotting a point at c(10,10) in the first plot will only be in the correct place IF the most recently
2013 Mar 09
1
Changing default order of plots in par
Hi, I wanted to change the order of how the plots appear in a multiplot scenario. For example, in the code below: ##### pdf('test.pdf',width=8,height=8) par(mfrow = c(2,2)) for(i in 1:2){ v1 <- sample(1:1000,50) v2 <- sample(1:1000,50) mat <- cbind(v1,v2) plot(v1,v2) boxplot(mat) } dev.off() ####### The plot ordering is that the first row gets filled in first,
2002 Mar 13
1
controlling figure dimension/location
I'm making two plots, one on top of the other. On the upper plot, I do not print the x-label or the x-tick-label. To reduce space, I'd like to keep the white space between the two figures at a minimum. However, I can't figure out how to methodically reduce the space while maintaining the same figure dimensions for both plots. I could add margin space below the lower plot and reduce
1999 Dec 09
0
setting par(fig) resets par(mfrow), par(mfcol)
Can we add a note to the documentation that setting par(fig) resets par(mfrow) and par(mfcol) to c(1,1)? Or are mfrow and mfcol now deprecated in favor of all the split screen stuff? (I was spending the morning trying to write some code that plotted multiple subplots within whatever plot region was active at the moment; I was able to set and reset fig successfully, but got very confused as to
2007 Jan 11
1
Error in plot.new() : Figure margins too large
Hello, was could be the reason for such an error message??? I'd like to create a window with 10x6 barplot and save it as pdf. I tried: pdf("histogram.pdf",width=7, height=7) windows(cols, rows) par(mfcol = c(rows,cols)) sapply(mat, calcHist) dev.off() Within the method of sapply, I call barplot What is wrong??? Antje
2009 Jun 18
1
"Normal" plot and xyplot side by side in one figure?
Hi list, I want to place a plot (eg "plot(1:10)") and a xyplot side by side in one figure. The two columns should have different widths. If I'm not missing something, this rules out the standard way: par(mfcol=n). I tried layout(), but it doesn't seem to like it when grid scribbles into its views (the plot works but the view for the xyplot is left empty). I would
2007 Aug 16
6
several plots on several pages
Hi > version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 2 minor 5.1 year 2007 month 06 day 27 svn rev 42083 language R version.string R version 2.5.1 (2007-06-27) I want to create a pdf withe three graphs on a page and with two pages:
1998 Dec 15
1
legend
I am trying to put a legend below some plots as follows: x11() par(mfcol = c(2, 1), mar = c(5.1, 6.1, 4.1, 2.1)) matplot(matrix(1:30,15,2), type="l", lty=1:2) par(mfg = c(2, 1, 2, 1)) legend((par()$usr)[1:2], (par()$usr)[3:4], c("a","b"), lty = 1:2, col=1:2, bty = "y") The letters "a" and "b" print but not the lines. If I omit
2003 Nov 03
1
svm in e1071 package: polynomial vs linear kernel
I am trying to understand what is the difference between linear and polynomial kernel: linear: u'*v polynomial: (gamma*u'*v + coef0)^degree It would seem that polynomial kernel with gamma = 1; coef0 = 0 and degree = 1 should be identical to linear kernel, however it gives me significantly different results for very simple data set, with linear kernel
2004 Aug 11
0
Re Re: R 1.9.1 (PR#7158)
paul murrell writes: > Hi > > > > Hi > > > > I am not to familier with R > > > > The following problem are observed on 1.9.1 but not on 1.9.0. > > Both R distribution installed from source code. > > > > System: > > > > Mac os X 10.3 > > Xdarwin 4.4 (xfree) > > > > > > Problem: >
2006 Jan 20
1
par(mfg=) and postscript and pdf
This is related to the incorrect bug report PR#7820. Marc Schwartz pointed out in https://stat.ethz.ch/pipermail/r-devel/2005-April/033016.html an example of a real problem. If you call par(mfg=) after par(mfrow) (or mfcol) and before you have done any plotting, NewPage is not called on the device at the start of the first page. That causes the DSC comments to be incorrect on postscript()