search for: mfcol

Displaying 20 results from an estimated 191 matches for "mfcol".

2012 Apr 30
1
Hmisc::pstamp, mfcol, and spacing
I am trying to make a nice 2x1 plot and add a timestamp with comment. The pstamp function from Hmisc works nicely when mfcol=c(1,1), but when mfcol=c(2,1), the stamp winds up in the wrong place: > require('Hmisc') > opar <- par(mfcol=c(2,1)) > plot(1:10) > title(main="MAIN Title") > plot(1:20) > title(main="Another Title") > pstamp("normal pars") > par(opa...
2005 Apr 06
2
par(mfcol=2, mfrow=3) equivalent for trellis
Dear friends of lattice, I know how to position trellis plots with print(...,split,more=T) or (...position). Sometimes I wish I had something like the old "par(mfcol=2, mfrow=3)" mechanism, where the next free viewport is automatically chosen. I tried fiddling with grid-viewports, but could not find an easy solution. Did I miss something? Dieter Menne
2012 Sep 02
2
Impact of cex changing as a function of mfrow
R 2.15.1 OS X (MLion) Colleagues, I am aware that changes in mfrow / mfcol in par() affect cex (from help: In a layout with exactly two rows and columns the base value of ?"cex"? is reduced by a factor of 0.83: if there are three or more of either rows or columns, the reduction factor is 0.66). I generate a multipage PDF in which mfrow varies such that cex is i...
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...
2009 Oct 29
1
changing default character size depending on settings for mfcol: How to scale font consistently?
Dear R-users, I would like to create pdf files with varying paper sizes. The paper size is determine by the number of plots that I squeeze on a page using par(mfcol). I also add text to each of these plots. I observed that depending on the number of plots per page, the default character size is changing, leading to differing font sizes in my plot annotations. I would like to use cex to scale the font size so that I obtain identical font sizes in my pdf, i...
2000 Oct 27
1
par(ask=T) in termplot() (PR#711)
...`ask' being > >interactive() && one.fig && length(which) > 1 && .Device != "postscript" > >Can you supply us with an appropriate patch for termplot and >termplot.Rd? The issue is somewhat subtle. So plot.lm() sets 'ask=F' if, eg, par(mfcol=c(2,1)) so that the first 2 plots cannot be really visualized. Here is a proposed modification for this function: $ diff plot.lm.R plot.lm.new.R 7c7 < ask = interactive() && one.fig && length(which) > 1 --- > ask = interactive() && nb.fig < len...
2003 Jan 22
1
self-split plot on multiple device
Hello! I would plot more than 10 (this number is always different) graphics on a figure with layout like 'mfrow=c(4,2)'. There is some existing function able to open the right number of device if number of graphics is done or I have to build it myself with some 'IF.....ELSE.....'? Thanks. A.S. ----------------------------
2002 Aug 13
1
interaction.plot() legend too narrow when mfcol > 2 (PR#1899)
Here is an example: The legends (mainly the factor level names) are cut off on the right. Somehow the internal calculation which computes horizontal space for the legend is not flexible enough. ## Call a new graphics window {with default par()s !}: get(getOption("device"))() par(mfrow = c(2,2)) ## part of example(interaction.plot) _improved_ using with() : data(OrchardSprays)
2011 Nov 10
3
Title for a group of plots?
I can get multiple plots on a page like: op <- par(mfcol = c(3, 1)) What I was wondering is if there is a way to have a title for the whole page? I can specify the title for each individual plot like: plot(xxx, main=".") But I would like a 'title' for the group of plots. Is this possible? Thank you. Kevin [[altern...
2010 Jan 20
2
legend in multiple plot
Dear R users, I'm making multiple plots within the same pdf page (par(mfcol = c(5,1)), and want a legend for this at the bottom of all the plots. From previous mails it has been suggested to use par(xpd=TRUE), increase the margin at the last plot, and then draw the legend. However, when I do this, the last plot gets smaller with the same amount I increase the margin with....
2006 May 12
4
Title of page with multiple plots
I want to place four plots on a page, and I would like to have all four plots share a common title. I have tried the following code, but the title is centered over the fourth graph and not centered across all four plots. Does anyone have any suggestions? R 2.1.1 windows xp oldpar<-par(mfcol =c(1,4),ask=TRUE) plot(p,varp) plot(p,SEp) plot(p,CVp) plot(p,ppval) title(paste("P and 95%CI for a sample size of",n,"subjects.")) Thanks, John John Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics Baltimore VA Medical Center GRECC and University of Maryland School...
2007 Aug 16
6
several plots on several pages
...error when plotting I(as in the example)? Everything works OK (for the firsat page) when graph one is plotted. I have the feeling, that I am thinking to complicated. Any help welcome, Rainer pdf("test.pdf") try( { ## Set layout to three rows and only oine column par( mfcol=c(3,1), oma=c(0,0,0,0), mar=c(4, 4, 2, 2) ) ## First row par(mfg=c(1,1)) try( plot(runif(ff)) ) ## Second row par(mfg=c(2,1)) try( plot(runif(100)) ) ## Third row par(mfg=c(3,1)) plot(runif(1000)) ## THE NEXT THREE SHOULD BE ON A NEW PAGE IN TH...
2011 Mar 25
1
multiple plots with QQplot of PerformanceAnalytics
Hi All, I am trying to plot 4 graphs on to 1 page using layout(...), or par(mfcol = c(...)); with the function QQplot from the package PerformanceAnalytics. The problem is that, no matter what order I use, it only plots 3 graphs on to 1 page and the last QQplot is shunted to the next page. Also, this only happens to the QQplot, i.e. there is no problem with 4 Histograms. s...
2010 May 13
3
Multiple plots; single x(y) labels
Hi All, Can anyone please help me with getting a single x and y-axis label while plotting muliple plots. Here is the code: par(mfcol=c(2,2)) plot(x <- sort(rnorm(7)), type = "s", main = "", ylab="", xlab="") plot(x <- sort(rnorm(27)), type = "s", main = "", ylab="", xlab="") plot(x <- sort(rnorm(47)), type = "s", main = "&quot...
2009 Nov 19
5
Accessing list names in lapply
...=10)), f=letters[seq(from=1, to=10, each=10)] ) str(df1) #List of 10 # $ a: num [1:10] -0.801 0.418 1.451 -0.554 -0.578 ... # $ b: num [1:10] -2.464 0.279 4.099 -2.483 1.921 ... # $ c: num [1:10] -1.14 -1.773 2.512 -2.072 -0.904 ... # $ d: num [1:10] 2.109 1.243 0.627 -2.343 -6.071 ... #... par(mfcol=c(5,2)) lapply(df1, plot) This plots each element of the list, but the label on the vertical axis is X[[0L]] (as expected from the documentation in ?lapply). I'd like the heading for each plot to be the name of that item in the list. This can be achieved by using a for-loop: for (i in names(d...
2011 Dec 16
3
Multiple plots in one subplot
Hi, I making a figure with six sub-plots using par(mfcol=c(2,3)). In the last sub-plot I want to have two graphs instead of one. I have tried using par(fig=x,y,z,v) but this par seems to overwrite the first par. Is there a simple solution? Thanks! Anna -- View this message in context: http://r.789695.n4.nabble.com/Multiple-plots-in-one-subplot-tp42035...
2005 Mar 18
2
multiple graphs
Dear all, I would like to plot multiple graphs in the same window. For this I used: par(mfcol=c(5,2) ) and then I use plot(x,y) to fill the cells of the window with the graphs. This results in multiple graphs with a lot of space around each graph. But I would like the 5 graphs in each column to be 'connected' (i.e., no space around them) and to specify values and label on t...
2012 Apr 01
1
Error in xy.coords(x, NULL, log = log) : (list) object cannot be coerced to type 'double'
...t;modwt") > #names(av.la8) <- c("d1", "d2", "d3", "d4","d5","d6", "d7", "d8","s8") > names(av.la8) <- c("d1", "d2", "d3", "d4","s4") > #par(mfcol=c(10,1), pty="m", mar=c(5-2,4,4-2,2)) > par(mfcol=c(6,1), pty="m", mar=c(5-2,4,4-2,2)) > plot.ts(av.la8, axes=F, ylab="", main="abs vol") *Error in xy.coords(x, NULL, log = log) : (list) object cannot be coerced to type 'double'* > #for(i...
2000 Oct 25
2
par(ask=T) in termplot()
Hi, I think it would be nice to have par(ask=T) set by default in termplot(), like it is in plot.lm(). Best, Emmanuel Paradis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !)
2010 Nov 24
1
Par() Variables, Timing, and Resizing
...respectively. I attempt to do this with the pin variable of the par() class. Further, as the two graphs are related, I want to put a small or even no margin between the two graphs. I manipulate the mar and oma variables to this end. Sadly, I am not getting the results that I want. > par(mfcol=c(2,1)) # 2 plot window > par(mar=c(0,4,0,2), oma=c(0,2,0.5,2), pin=c(6,0.5)) # Set all variables at once for the upper plot > plot(1:9) # sample upper plot > par(pin=c(6,3)) # set window size for 2nd plot > plot(1:9) # sample lower plot This method produ...