similar to: layout function for several plots

Displaying 20 results from an estimated 8000 matches similar to: "layout function for several plots"

2007 Sep 19
1
lmer using quasibinomial family
Dear all, I try to consider overdispersion in a lmer model. But using family=quasibinomial rather than family=binomial seems to change the fit but not the result of an anova test. In addition if we specify test="F" as it is recomanded for glm using quasibinomial, the test remains a Chisq test. Are all tests scaled for dispersion, or none? Why is there a difference between glm and lmer
2012 Mar 08
3
"figure margins too large" in RGtk2 drawing area as cairo device - why?
When using a gtkDrawingArea as a Cairo device I very often encounter the error: "figure margins too large" Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ this is the case. > win = gtkWindow() > da = gtkDrawingArea() > win$add(da) > asCairoDevice(da) [1] TRUE > plot(1:10) Fehler in plot.new() : Grafikr?nder zu gro? > Also
2006 Dec 22
0
plot.mids / Error in plot.new() : figure margins too large
Hello R-Users, I would like to check the convergence of my imputations. However, when I use the function the plot.mids(), I always obtain the following error message Error in plot.new() : figure margins too large I read the same question in thread from November 2005 (see below). I actually have the same problem. Is it now possible to plot subsets of mids.objects. If yes, how? My
2006 Sep 28
3
complex plots using layout()
Dear r-help, I am trying to plot several scatter plots with marginal histograms on one page. Ideally, a page is equally divided into 4 figure regions. Within each figure region, a scatter plot with marginal histograms will be plotted. I followed Dr. Paul Murrell's code released online to successfully plot the scatter plot with marginal histograms. The code applies "layout()" to
2009 Jan 28
2
help with plot layout
It takes a lot of sweat to generate a composite plot with R ... sigh. I though I was almost done when I met the umpteenth hurdle. I cannot place a nice title on the 2nd plot (raw signal) on the layout. I do not have control on where either the "main" option of "plot" function, or "title", place the text string which keeps dysplaying chopped from above. I also tried
2002 Mar 13
1
win.metafile and multiple plots
I'm having difficulty using the win.metafile command. I'd like to place three plots in one window and then save the window as a metafile. The commands I want to use are: win.metafile("mike.emf",width=3,height=2,pointsize=10) nf <- layout(matrix(c(1,2,3), 3, 1), heights=c(1,1,1)) layout.show(nf) plot(rnorm(10)) plot(rnorm(10)) plot(rnorm(10)) dev.off() However, I get the
2006 Feb 15
2
common title for graphs in a (1x2) layout
Dear all, Many thanks for the help suggesting the use of "layout" cmd. How to insert a title in a 1x2 layout? The title is related to both graphs. I looked for it in help, unsuccessfully. Thanks in advance, Rodrigo. my reproductible code: ---------------------------------------------------------------------- def.par <- par(no.readonly = TRUE) nf <- layout(matrix(c(1,2),
2006 Oct 16
1
plots: layout + subtitles
Hello, I want to create a figure that consists of a collection of 16 graphs on 4 rows. I am using nf <- layout(matrix(seq(1,16), 4,4, byrow=TRUE), respect=TRUE) boxplot(... to create the layout of my 16 graphs. It works really well. However, I'd like to add sub-titles that would apply to each row of 4 graphs. More specifically, I'd like to have something like: subtitle 1
2000 Sep 18
5
layout question
I wanted to produce a layout like this: |----------| | | | 1 | | | |-----------------------| | | | | 2 | 3 | | | | |-----------------------| Three equal sized plots with the top one centred about the other two. So far I am using nf<-layout(matrix(c(1,1,2,3), 2, 2,
2003 Oct 12
1
plot/ layout/ overlay problem
System info: Red Hat 9.0 R Version 1.7.0 ESS 5.1.21 Emacs 21.2.1 ------------------- Colleagues I have a small problem with positioning overlays using layout. ## Purpose: to plot temperature and salinity profiles ## as a multipanel figure, and ## overlay the the mixed ## layer depths. Here is the code skeleton: -------------------- nf <-
2007 Oct 23
3
sum variable as long condition is true
Hello R For expierienced user, the following problem will be easy to solve: a<-c(0,1,0,1,0,2,3,4,3,2) b<-c(3,3,3,4,4,4,7,7,7,10) c<-data.frame(a,b) Data Frame c contains tow colums. I would like to sum up all values in a as long as b stays the same: sum(a[which(b==1)]) does this, but i have to manually put in b then i tryied st like this, but i canno't save it properly for (i
2007 Nov 21
2
Reconstruct array dataset
Hi there I have an interesting problem: My csv file is of array dimensions [12,50], but it was saved the wrong way: there should be only 11 colums. What happens now if I read it into R is that the whole data set is shifted ( in the first row, the last column contains already the first value of the supposed second row and so on...) how can I tell R to switch after 11 read values to the next row,
2007 Sep 27
3
different colors for two wireframes in same plot
Hello R, According to: g <- expand.grid(x = 1:10, y = 5:15, gr = 1:2) g$z <- log((g$x^g$g + g$y^2) * g$gr) wireframe(z ~ x * y, data = g, groups = gr, scales = list(arrows = FALSE), drape = TRUE, colorkey = TRUE, screen = list(z = 30, x = -60)) i have two wireframes in one plot. How could i change the color of the top - one to transparent (or only the grid).
2003 Apr 16
2
layout.show()
Dear r-help, Please, be so kind, tell me what does mean the parameter of layout.show()? I use R 1.6.2... Windows NT 4.0 Unfortunately I cannot understand phrases from the help "n: number of figures to plot." what figures? "`layout.show(n)' plots (part of) the current layout, namely the outlines of the next `n' figures." what figures?
2010 Oct 12
1
graphics layout
Folks, I'm battling the layout() functionality in graphics, and getting a bit mixed up. I'd like to create subscreens like so: _________ _________ | | | | 1 | 2 | |_________|________ | | | | | 3 | 4 | |_________|_________| | |____6____| | 5 |____7____| |_________|____8____| Note that subscreens 1:5 are the same
2003 Jan 21
2
key in margin area
Hi Is there any way to position a key (legend) outside the plot area? i.e. in the margin between plot area and page margin. I realise I could achieve the same effect by creating a larger plot but not printing the axes and then draw the smaller axes independantly leaving room for the key. However, that wont work very well in my particular case. Thanks in advance Jeremy
2006 Sep 15
3
graphics and 'layout' question
Hello, I got stuck with a graphics question: I've 3 figures that I present on a single page (window) via 'layout'. The layout is layout(matrix(c(1,1,2,3), 2, 2, byrow=TRUE)); so that the frst plot spans the both columns in row one. Now I'd like to magnify the fist figure so that it takes 20% more vertical space (i.e. more space for the y-axis). How would I do this in R?
2003 Jan 17
1
problems writing graphics
Hello R-listers, I am developing a function which needs to create jpeg files from some plots. To create the jpeg files I use the instruction dev.print(jpeg, file=c://graph.jpg",width=400,height=400). Until now everything has been fine, but now I have a special plot which is formed by 3 separate plots joined with the instruction "layout": nf <-
2007 Oct 02
2
zoo timeserie continuous? complete with NaN
dear r-list I have a zoo object with 2 objects and time: looks like: 2005-12-31 12:00:00 NA NaN 2005-12-31 13:00:00 NA NaN 2005-12-31 14:00:00 NA NaN 2005-12-31 15:00:00 NA NaN 2005-12-31 16:00:00 NA NaN 2005-12-31 18:00:00 NA NaN 2005-12-31 19:00:00 NA NaN 2005-12-31 20:00:00 NA NaN 2005-12-31 21:00:00 NA
2010 Jun 17
2
Multiple plots in a single page and stripplot()
I want to make a 2x2 plot on a single page, using stripplot() and boxplot(). I tried the following two alternatives with mfrow() and layout(), but none of them worked. library(lattice) par(mfrow=c(2,2)) boxplot(X1 ~ Y, data=tst1, horizontal=T, las=1) boxplot(X2 ~ Y, data=tst1, horizontal=T, las=1) stripplot(Y ~ X1, data=tst1) stripplot(Y ~ X2, data=tst1) par(mfrow=c(1,1)) nf <-