similar to: How to put multiple plots in the same window? (not par(mf row=))

Displaying 20 results from an estimated 20000 matches similar to: "How to put multiple plots in the same window? (not par(mf row=))"

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
2004 Aug 02
4
How to add a common title (or xlab, ylab) for multi-plots in the same window?
Dear R people, I am using par(mfrow=c()) to plot multi-figures in the same window. And I like to put a common title (and xlab, ylab) for all of plots. I have already left some margin by resetting omi values in par() and hided all (xlab, ylab) for each sub-plot. Could anyone tell me how to do that? Thanks a lot, Frank
2012 Sep 25
1
Bug or misunderstanding of par(pin)?
Dear all, I am currently trying to create a plot showing multiple single plots, for which the important issue is that the size of each plot region (not figure region!) has to be of a fixed dimension (in my case: width=1 inch, height= 0.87 inches). I tried to use "pin" to fix the plotting region to a specific size, but without success. The following example will visualize the problem:
2008 Apr 08
1
plot function / par() settings
Dear all; I'm trying to create a 2 x 3 plot (something I know like lattice can do better) using the plot function. However; I'm not sure how to make the width of the plots to be the same on each column. I guess the answer maybe obvious but I haven't been able to figure it out. I'll appreciate any suggestion. Here is the (highly inefficient) code for the first row: par(mfrow =
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
2008 Aug 15
0
simple shaded rectangle overlay on plots
Hi, I'm sure this is pretty straightforward, but I cant seem to figure it out after playing around with grid, and a number of other packages for graphing I have data of the following type (much larger of course, and in this case is named "Medoid4"). The first column defines the x-axis, while as each other column is individual y-axes in different plots gene1 gene2 gene3 4
2005 Jun 14
2
Plotting rows (or columns) from a matrix in different graphs, not using "par"
Dear R-users, I would like to ask whether it's possible (for sure it would be), to plot each rows (or columns) in different graphs and in the same figure region without using the function "par" and then struggling around with "axes" and labels etc. Luckily, I would always have "rows + columns = even number" and the same "ylim". The next one could be a
2006 Jul 10
1
par(mfrow,mai) and multiple plot problem
Hi I'm having difficulty with a multiple plot. What I want is 12 plots, all of which are the same size and shape, differing only in colour. Each one is a square, so there is an asp=1 in the plot call. I'm working in an Sweave environment so I am free to choose the height and width of the plot. I want the columns to be labelled at the head (here t=1,2,3) and the rows to be labelled at
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()
2000 Dec 22
0
par(lab= *) / axis(*) bug (PR#791)
As the subject says, here is example code (with comments) showing the problem: p1 <- function(lab = c(8,12,7)) { ## This `fails' (on a virgin device) clab <- paste(lab,collapse=",") plot(1,1, xlim = c(0,15), ylim = c(-.8,1), type ="n", axes = FALSE, main=paste("plot(*,axes=F); par(lab= c(",clab,")); axis(*) x
2005 Jul 06
2
Graphics: calling par(mar) after frame()
The following code produces 6 plots on a page, but the first is distorted and different from the others: par(mfrow=c(3,2), las=2) for (i in 1:6) { frame() par(mar=c(7, 7, 1, 1)) axis(2); box(); abline(h=seq(0,1,.5), col=2:4) } The first plot's axes are mis-aligned with the plotting area implied by the box. It seems to be a result of calling par(mar) after frame(). Is this expected
2008 Feb 18
1
Plotting a legend outside the figure - units
Dear R gurus, I am trying to plot a legend in the margins of a figure. The basic idea is to have two (or more) plots on the same figure, but then to have a common legend at the bottom of the plot. The approach that I have taken is to setup the figures, then do a "dummy" plot of the legend to determine the height of the legend box (ie from the value returned by the legend() command). I
2017 Jul 23
0
par(mfrow) for heatmap plots
The answer is "don't do that" because that function abuses par. Use lattice or ggplot2 with grid graphics to plot multiple heatmaps. https://stackoverflow.com/questions/15114347/to-display-two-heatmaps-in-same-pdf-side-by-side-in-r -- Sent from my phone. Please excuse my brevity. On July 23, 2017 5:11:32 AM PDT, Brian Smith <bsmith030465 at gmail.com> wrote: >Hi, >
2008 Jul 02
0
Combining playwith with par(mfrow... ) i.e., multiple plots.
Hi, I have the following problem: library(playwith) x<-ts(rnorm(100)) y<-ts(cumsum(x)) playwith({ par(mfrow=c(2,1)) plot(x) plot(y)}) I can't make playwith identify (using the button top left) datapoints on multiple graph plots (eg. par(mfrow=c(2,2) for a 2 x 2 frame of plots). Is it possible any other way? Many thanks in advance, Costas P Think
2009 Mar 20
1
Howto Supress Extra Blank Page in gridBase
Dear all, I have a simple plot using "gridBase" like this. The problem occurs whenever I execute this code there is always a blank page created before the actual plot. How can we disable that blank page? I am using: R version 2.7.2 (2008-08-25) and gridBase version: 0.4-3 __ BEGIN__ library(grid) library(gridBase) opar <- par(no.readonly=TRUE) par(opar) grid.newpage()
2017 Jul 23
3
par(mfrow) for heatmap plots
Hi, I was trying to use par(mfrow) to put 4 heatmaps on a single page. However, I get one plot per page and not one page with 4 plots. What should I modify? Test code is given below: test = matrix(rnorm(60), 20, 3) pdf(file='test.pdf',width=10,height=8) par(mfrow=c(2,2)) heatmap(test) heatmap(test) heatmap(test) heatmap(test) dev.off() thanks! [[alternative HTML version deleted]]
2010 Feb 18
2
problem with multiple plots (mfrow, mar)
Dear R-users, I often stack plots that have the same x-axis. To save space and have the plots themselves as large as possible I like to minimize the margins between the plots to zero. I use the "mfrow" and "mar" parameters to achieve this. However, the different margin settings for the individual plots lead to the inner plots being higher than the two outer plots. To make the
2012 Sep 27
3
Comparing density plots using same axes or same axes scale
Good Evening- I have a set of nine scenarios I want to plot to see how the distribution is changing, if one tail is getting larger in certain scenario, currently I am using this code colnames<-dimnames(sag_pdfs)[[2]] par(mfrow=c(3,3)) for(i in 1:9) { d<-density(sag[,i]) plot(d,type="n", main=colnames[i]) polygon(d,col="red",border="grey")} where sag is
2006 Jun 17
0
Panel Bar plots
Hello All, I have been trying to use the par(mfrow(c(m,n)) function to produce a panel of m rows and n columns of bar plots. The different columns were to designate n different categories, as the m rows are to designate different categories as well. However, I cannot seem to get rid of the y-axes(vertical axes) in the n>1 columns. I wrote a loop to attempt to do this, but ended up
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,