similar to: Question about putting multiple plots on the same page

Displaying 20 results from an estimated 20000 matches similar to: "Question about putting multiple plots on the same page"

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
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 impacted. This affect
2011 Mar 10
1
Main title in a multiple display of graphs
Hello! I want to display four xyplots in the same window (sorry if I don't use the propers words, but my English is rude) I know that if I use plot(y~x) then x=(1:100) y=(1:100) par(mfrow=c(2,2)) plot(y~x) plot(y~x) plot(y~x) plot(y~x) would give what I want, but this is not the case because I need the functions of xyplot. So I did the following: plot.new()
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. The problem seems to
2006 May 16
3
multiple plots in a function()
Dear all, I have the following problem: I have written a function genereating to plots, eg myfunction <- (data, some.parameters) { #some calculations etc . par (mfrow=c(1,2)) plot1(......) plot2(.....) } which works fine. But for analysing several variants, I tried a slope, eg: par (mfrow=c(5,5)) for ( i in 1:10) { myfunction(data, i) } Off
2009 May 01
2
Reccomendation for graphics package
Hello, What would you recommend for producing publication-quality plots with R? Built-in graphics, trellis, ggplot2, or something else? Basic requirements: - I need to draw line-, box-, density-plots, bar-charts and histograms - error bars on bar- and box-plots - easy tiling of multiple plots on a single "page" Basic R plotting with mfrow and mfcol parameters is not satisfactory
2011 Apr 07
1
Adding text to page margin with lattice graphics
R: 2.12.1 OS X Colleagues I am working with lattice graphics for the first time and I am confused by some aspects of controlling these graphics. The most pressing issue is the following: I can print the graphics without problems with the command: print(MYFUNCTION(SOMEOBJECT) However, I would like to add margin text (this terminology might not apply in this setting). I am able to do so with
2010 Nov 24
1
Par() Variables, Timing, and Resizing
Hello, R-help, Although this is my first post to the mailing list, I have been a subscriber for a while now, and have found all of the posts to be very informative in my quest to attempt to master R. Thank you for that in advance. This question involves the use of the par() variables pin, oma, and mar to resize "sub-plots" in an output window. I am aware from ?plot that the use of
2010 Feb 12
2
Multiple figures margin problem
Hello All, I am trying to make a figure with 3x2 plots in it. Let us name the plots as such: 1 2 3 4 5 6 I begin my script with: par(mfcol=c(3,2)) par(oma=c(0,0,0,0)) --> This is for a postscript figure so I really don't need the outer margins. d=5 par(mar=c(d,d,d,d)) --> This applies to all the 6 plots. Now if d=0, plots 1-2,3-4 and 5-6 will have no gap between them and
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
2005 Dec 16
2
multiple plots per page
R-help, I would like to place nine (3X3) plots per page. I am not properly implement mfrow(3,3) in the script below: jpeg("xyplot.jpg") #names output file my_args <- commandArgs() #sets up to take args from dos batch command mfcol(3,3) #set page for 3X3 TEMPS <- c(-15,25,85)#list of temps VBATS <- c(3,3.6,4.7)#list of Bats BOARDS <-
2009 Dec 07
1
multiple plots using summary in rms package
Dear All, I wonder if someone can point me in the right direction here. I'm working with the rms library, R 2.9.2 under Windows XP. I'm trying to arrange two plots side by side for a colleague. mfrow or mfcol do not seem to work, however, so I am obviously missing something important. I know that there have been changes in the graphics from Design to rms, but am just not sure where to
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
2008 Dec 10
2
Multpile (45x8) graphs of the same page / device: titles crammed
Dear R users, I'm trying to plot 45x8 graphs on the same pdf / device for the sake of visual comparison. par(mfcol=c(45,8)) par(mai=c(0,0,0,0)) In ?title, I can see there are cex and font settings: I set cex = 0.01 and font = 1: it is still very large, and then I tried setting font < 1, e.g. font = 0.5, Then I get an error: Error in title(paste(Ppercent, "% ",
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) {
2005 Feb 21
4
49 histograms on one page
Hi, I want to do something like this: par(mfrow=c(7,7)) for (i in 1:49) hist(RATDACOM[SUBJNO==i],breaks=0.5+(0:6), main="",xlab="",ylab="",xaxt="n",yaxt="n") (Don't think about what RATDACOM and SUBJNO are.) I get an error Error in plot.new() : Figure margins too large. 36 histograms with mfrow=c(6,6) work. But the 36 histograms
2007 Jul 19
1
mfrow is ignored by some plots
Hi all, I was just informed that the plots in the radial.plot family in the plotrix package do not plot correctly when using mfrow or mfcol to subdivide the plot window. I found one related message, an answer from Deepayan Sarkar to a question about lattice graphics, but that shed no light on this problem. If I invoke par(mfrow=c(2,2)) and run radial.plot a few times, the plots appears in
2011 Jun 14
1
problems with plots in loop (corrected Email)
Dear helpers, In an attempt to use a loop to generate graphs in a for loop in run into a problem. The plan is to fill each page with eight graphs (mfrow = c(4,2)) in to two columns. Only the buttom graphs ( meaning every fourth graph) have tick labels on the x axis to preserve space. I used an if .... Else statement to achieve that. The problem is that the first eight graphs are skipped
2004 Jul 30
6
How to put multiple plots in the same window? (not par(mfrow=))
Dear All, I am sorry if this question has been asked before. Below is my Question: I want to put several plots in the same window, but I don?t want the blank space between plots (like par(mfrow=)) --- that makes the plots too small. Could anyone tell me how to do it? Thanks a lot. Frank
2003 Apr 30
3
How to put 2 or more graphics in the same page ?
Hi, I have a naive question... I have produced about 60 graphics and want to put them in one postscipt file , possibly 4 graphics on each page. I can put all of them in the same file (that's ok), but I can't find the way to put 2 or more (precisely 4, in my case) graphics on the same page (each graphics is about 6 inches (width) X 4 inches (height)). Any help would be very much