search for: n2mfrow

Displaying 13 results from an estimated 13 matches for "n2mfrow".

Did you mean: mfrow
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. ----------------------------
2001 Apr 27
2
Plotting multiple figures
Morning, I've plotted multiple figures on one page, setup the page with n2mfrow. This works fine, but I can't figure out how to change to a specific plot (e.g. first row, second column) to add some details. Thanks, Sven -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.htm...
2011 Mar 29
1
Multiple area plots to share the same x-axis
...<- function(..., nrow=NULL, ncol=NULL, as.table=FALSE) { dots <- list(...) n <- length(dots) if(is.null(nrow) & is.null(ncol)) { nrow = floor(n/2) ; ncol = ceiling(n/nrow)} if(is.null(nrow)) { nrow = ceiling(n/ncol)} if(is.null(ncol)) { ncol = ceiling(n/nrow)} ## NOTE see n2mfrow in grDevices for possible alternative grid.newpage() pushViewport(viewport(layout=grid.layout(nrow,ncol) ) ) ii.p <- 1 for(ii.row in seq(1, nrow)){ ii.table.row <- ii.row if(as.table) {ii.table.row <- nrow - ii.table.row + 1} for(ii.col in seq(1, ncol)){ ii.table <- ii.p if(...
2009 Sep 19
1
matrix operations on grobs and grid units
...;, "center"), gpar.text = gpar(col="black", cex=1), gpar.fill = gpar(fill = "grey95", col="white", lwd=1.5)) { n <- length(e) # number of labels stopifnot(!n%%2) # only rectangular layouts if(missing(ncol) & missing(nrow)){ nm <- n2mfrow(n) # pretty default layout ncol = nm[1] nrow = nm[2] } makeOneLabel <- function(label.ind){ textGrob(label=e[label.ind], gp=gpar.text, name=paste("cells-label-",label.ind, sep="")) } lg <- lapply(seq_along(e), makeOneLabel) # list of grobs wg <- lapply(lg, grob...
2011 Aug 31
3
Scatter Plot Command Syntax Using Data.Frame Source
I've tried various commands. ?plot, Teetor's book, "R Cookbook", and Mittal's book, "R Graphs Cookbook" without seeing how to write the command to create scatterplots from my data.frame. The structure is: > str(chemdata) 'data.frame': 14886 obs. of 4 variables: $ site : Factor w/ 148 levels "BC-0.5","BC-1",..: 104 145 126 115
2011 Mar 24
1
questions regarding stat_smooth in ggplot area plot
Hello, I drew a simple area plot using ggplot2 using set <- read.table(file="http://www.jovian.nl/set.csv", head=1, sep=",") library(ggplot2) ggplot() + layer( data = set, mapping = aes(x = time, y = hours), geom = "area", stat="smooth", color="red" ) + layer( data = set, mapping = aes(x = time, y = hours), geom = "area",
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
...Cdevga=devga, CsavePlot=savePlot, Type1FontInUse, CIDFontInUse, R_GD_nullDevice) } else { *************** *** 23,28 **** --- 23,30 ---- extendrange, getGraphicsEvent, graphics.off, gray, grey, gray.colors, grey.colors, heat.colors, hsv, hcl, make.rgb, n2mfrow, nclass.Sturges, nclass.FD, nclass.scott, palette, pdf, + pdf.annot.box, pdf.text.box.info, pdf.link.on.box, pdf.text.on.box, + pdf.link.on.text, pdf.text.on.text, pdf.options, pdfFonts, pictex, postscript, postscriptFont, postscriptFonts, ps.options, rainbow, record...
2020 Apr 24
0
R 4.0.0 is released
...me new built-in palettes, which are listed by the new palette.pals() function. These include the old default palette under the name "R3". Finally, the new palette.colors() function allows a subset of colours to be selected from any of the built-in palettes. * n2mfrow() gains an option asp = 1 to specify the aspect ratio, fulfilling the wish and extending the proposal of Michael Chirico in PR#17648. * For head(x, n) and tail() the default and other S3 methods notably for _vector_ n, e.g. to get a "corner" of a matrix, has b...
2020 Apr 24
0
R 4.0.0 is released
...me new built-in palettes, which are listed by the new palette.pals() function. These include the old default palette under the name "R3". Finally, the new palette.colors() function allows a subset of colours to be selected from any of the built-in palettes. * n2mfrow() gains an option asp = 1 to specify the aspect ratio, fulfilling the wish and extending the proposal of Michael Chirico in PR#17648. * For head(x, n) and tail() the default and other S3 methods notably for _vector_ n, e.g. to get a "corner" of a matrix, has b...
2020 Apr 24
0
R 4.0.0 is released
...me new built-in palettes, which are listed by the new palette.pals() function. These include the old default palette under the name "R3". Finally, the new palette.colors() function allows a subset of colours to be selected from any of the built-in palettes. * n2mfrow() gains an option asp = 1 to specify the aspect ratio, fulfilling the wish and extending the proposal of Michael Chirico in PR#17648. * For head(x, n) and tail() the default and other S3 methods notably for _vector_ n, e.g. to get a "corner" of a matrix, has b...
2005 Oct 06
0
R-2.2.0 is released
...ber will appear after the date in the welcome message. The date shown is now the date of the last change to the sources rather than the date the sources were prepared. o is.null(expression()) now returns FALSE. Only NULL gives TRUE in is.null(). o graphics::xy.coords, xyz.coords and n2mfrow have been moved to the grDevices name space (to be available for grid as well). graphics::boxplot.stats, contourLines, nclass.*, and chull have been moved to the grDevices name space. The C code underlying chull() has been moved to package grDevices. o split(x, f), split<-() and unspl...
2005 Oct 06
0
R-2.2.0 is released
...ber will appear after the date in the welcome message. The date shown is now the date of the last change to the sources rather than the date the sources were prepared. o is.null(expression()) now returns FALSE. Only NULL gives TRUE in is.null(). o graphics::xy.coords, xyz.coords and n2mfrow have been moved to the grDevices name space (to be available for grid as well). graphics::boxplot.stats, contourLines, nclass.*, and chull have been moved to the grDevices name space. The C code underlying chull() has been moved to package grDevices. o split(x, f), split<-() and unspl...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...html latex example morley text html latex example mosaicplot text html latex example mtcars text html latex example mtext text html latex example n2mfrow text html latex example na.action text html latex example na.fail text html latex example nafns text html latex name text htm...