similar to: graphics: par(mfg=c(i,j,r,c)) (PR#529)

Displaying 20 results from an estimated 3000 matches similar to: "graphics: par(mfg=c(i,j,r,c)) (PR#529)"

2010 Sep 25
1
margin control in lattice package
Hi all, I am difficulty with simple layout of plots in the lattice package I have created a series of levelplots and would like to plot them to a single device, but need to reduce the margin areas. This is easily accomplished with par(oma) and par(mar) in the base graphics package but I am having problems finding the equivalent features in the lattice package. Ideally, I would like to reduce
2010 Mar 19
1
One main title and One legend for multiple lattice plots
Hi All, Can anyone please help me with getting a "single title" and "legend" for both the plots in the following R code. I'll eventually be using .wmf file. # R code: library(lattice) p1 <- xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos, type = "a", main="Same title / legend", auto.key = list(space = "right",
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
2005 Feb 15
1
lattice multiple plots per page
Dear R-sters, I was wondering if anyone has encountered the following issues. I've figured out how to get multiple levelplots [library(lattice)] on a single plot. However, when I add text (adding axis labels for the entire four panel plot) the text is missing when I insert the *.eps file I've created into my LaTeX document (via MikTeX-WinEdt). And, I've just upgraded to R
2010 Aug 09
1
creating pdf of wireframe
Dear R list, I have written some code to produce several wireframe plots in a panel. They look good, but when I try to create a pdf, many (but not all) of the details I have specified are not reproduced. For example, the line width I have specified is not reproduced, and neither are the font sizes for the axis labels. I'm an R novice, so I could really use some guidance. Here is the code I am
2006 Jul 12
2
Bug#377996: Error: Device 2049 (vbd) could not be connected. Backend
Package: xen-utils-3.0 Version: 3.0.2+hg9681-1 Severity: normal I get this error with xen after some debug cycles, start / stopping nodes. I found this fix on the net, which fixes the problem: http://lists.xensource.com/archives/html/xen-users/2006-04/msg01070.html in /etc/init.d/xen: start) + modprobe loop max_loop=64 + cd /dev && /dev/MAKEDEV loop xend start
2011 Feb 15
0
Relationships between png resolution, axis.text$cex trellis setting, and paddings
Dear R-users, I was wondering if somebody could shed some light on the relationships existing between the resolution of a png device, the axis.text$cex trellis setting, and the paddings of the actual graph. In the following code, I create a custom trellis theme that set (among other thing) axis.text$cex to 1 instead of the default 0.8. Then a lattice graph is created and exported to three png
2005 Apr 27
1
postscript (eps) / latex / par(mfg=...) / problem! (PR#7820)
Full_Name: Dan Freak Bolser Version: Version 2.0.0 (2004-10-04) OS: Linux 2.4.20-31.9 (RedHat 9) Submission from: (NULL) (62.253.128.15) The same problem I am having has been reported here
2010 Dec 17
2
adding text to the top corner of a lattice plot
Hi, I have a series of lattice plots which I am arranging in a 2x2 grid via print: print(p.preds, split=c(1,1, 2,2), more=TRUE) print(p.comp, split=c(2,1,2,2), more=TRUE) print(p.bw, split=c(1,2,2,2), more=FALSE) What I'd like to have is a letter (A, B, ...) in the top corner of each plot. While panel.text lets me add text anywhere within a plot, I can't seem to workout how I could put
2007 Mar 17
1
problem with mfg argument of par
I'm having a problem with the mfg option of par. Am I making an error in my usage? Here is a simple example that I thought would plot to the 4 corners of a 2x2 plot but doesn't plot to the lower right and plots twice on the upper left. par(mfrow = c(2, 2)) pos <- as.matrix(expand.grid(1:2, 1:2)) for (ix in 4:1) { par(mfg = pos[ix, ]) plot(1:5) } Thank you in advance. R version
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()
2005 Apr 26
2
postscript (eps) / latex / par(mfg=...) / problem!
The same problem I am having has been reported here http://tolstoy.newcastle.edu.au/R/devel/04a/0344.html Namely that using par(mfg=...) with a postscript (eps) for inclusion with latex makes the figure appear upside down and back to front (flipped)! Converting the dvi to ps makes matters worse (the eps seems to be broken), however, it appears fine with gv. Here is (basically) the code I am
2005 Apr 26
2
postscript (eps) / latex / par(mfg=...) / problem!
The same problem I am having has been reported here http://tolstoy.newcastle.edu.au/R/devel/04a/0344.html Namely that using par(mfg=...) with a postscript (eps) for inclusion with latex makes the figure appear upside down and back to front (flipped)! Converting the dvi to ps makes matters worse (the eps seems to be broken), however, it appears fine with gv. Here is (basically) the code I am
2006 May 23
2
multiple plots with par mfg
Hi, I'm trying to add points to 2 plots on the fly using par(mfg=vector) so switch between them. However, the appropriate scales aren't switched when changing from one plot to another, e.g. par(mfcol=c(2,1)) plot(1,1, col="blue") # blue plot plot(1.2,1.2, col="red") # red plot points(1.1,1.1) # appears to bottom left of red point par(mfg=c(1,1)) #
2004 Feb 20
1
unexpected postscript output with par(mfg)
Hi, a colleague of mine encountered some unexpected behavior regarding the postscript output from R. It's difficult for me to tell whether or not this is an R problem or a ghostview/gv/interpreter problem. Just to note, I think it's exactly the same situation reported here: http://finzi.psych.upenn.edu/R/Rhelp02/archive/25436.html The following code produces a working plot (no
2012 May 17
3
New Eyes Needed to See Syntax Error
One of many scripts to produce 4 lattice plots on one page keeps throwing an error. I've tried manipulating the file to eliminate the error, but have not been able to do so. The error is: > source('bicarb.R') Error in source("bicarb.R") : bicarb.R:15:1: unexpected symbol 14: 15: hco33 ^ The 'h' is in column 0 so the caret would be column -1, but it's
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
2007 Nov 29
1
Question about using “par”
Hi, Sorry for bothering your guys again. I am trying to use "par" to put 6 figures into 3 rows and 2 columns. My code is: op <- par(mfrow = c(1, 2)) xyplot(x1+x2+x3 ~ y, data=resulta, type="l", pch=LETTERS[1:3], lty=c(1:3), main="For k=3, theata1=1") xyplot(x1+x2+x3 ~ y, data=resultb, type="l", pch=LETTERS[1:3], lty=c(1:3), main="For k=3,
2008 Jun 26
0
plot multiple xYplots
Dear All, I'm having trouble ploting multiple xYplots (Hmisc) within the same pg although I've done it before w/ xyplots. I've produced 4 similar plots e.g. rna.h<-xYplot(Cbind(RNA,Lo,Up)~HO|factor(MO,labels=c("April", "May","June")),data=diel.data,method="bars",type="b", keys="lines",pch=16,col=1,cap=.04,
2008 Jun 26
0
multiple xYplots
Dear All, I'm having trouble ploting multiple xYplots (Hmisc) within the same pg although I've done it before w/ xyplots. I've produced 4 similar plots e.g. rna.h<-xYplot(Cbind(RNA,Lo,Up)~HO|factor(MO,labels=c("April", "May","June")),data=diel.data,method="bars",type="b",