similar to: R-beta: multiplot using fig

Displaying 20 results from an estimated 2000 matches similar to: "R-beta: multiplot using fig"

2003 Feb 06
2
Fw: Plotting in subareas using par(fig=) parameter
Any idea why I can no longer plot two graphs on the same graphics device using the par(fig=) parameter? A simpler par(mfrow=c(1,2)) does work, showing the two plots side-by-side, but I would like the first to be larger. This simple example fails: x<-c(1,1,NA,2,2,NA,3,3) y<-c(2,4,NA,3,5,NA,1,4) par(fig=c(0,2/3,0,1)) plot(x,y) par(fig=c(2/3,1,0,1)) qqnorm(x) When plotted, the last
2006 May 29
2
line over multiplot
Dear Listmembers, I do have a multiplot with 1 row and 4 columns (4 scatter plots with same x- and y-axe plotted in one row). I would like to draw a horizontal line across the whole multiplot at a certain y-value. Unfortunately the normal abline command stops between the plot. I hope my problem is clear and there is somebody who can help me Thanks in advance Thomas H.
2010 Nov 30
2
Adding text to a multiplot (via mfrow)
Hi I have created a set of 4 barplots using mfrow=c(2,2) and need to add a heading that spans the margin of the bottom 2 graphs. I have used locator(1) to find the coordinates but I dont seem to be able to add text anywhere on this multiplot. I would be really grateful if anyone could tell me if there is a simple method of achieving this. Many thanks Sam Jones -- View this message in
2004 Oct 25
2
par("usr") trouble in multiplot axis scaling
Hello, I'm blotting a series of growth curves into a multiplot environment created with layout(). since I want the four plots to be easily visually comparable, I do the following: #first plot plot(x,y,<stuff>) standarduser<-par()$usr ... <some fitting> ... lines(spline(x, <fitted_equation>)) #everything all right till here # second plot plot(x,y,<stuff>)
2008 Jul 06
1
Backgrounds in Multiple Plots made with "fig"
The following code was adapted from an example Vincent Zoonekynd gave on his web site http://zoonek2.free.fr/UNIX/48_R/03.html: n <- 1000 x <- rnorm(n) qqnorm(x) qqline(x, col="red") op <- par(fig=c(.02,.5,.5,.98), new=TRUE) hist(x, probability=T, col="light blue", xlab="", ylab="", main="", axes=F) lines(density(x),
2009 Apr 17
1
multiplot plot spacing and text strip
Hi everyone, I have a certain requirement and I'm not sure what to do.I need to reduce the spacing between plots in a multiplot. Make them really close together such that they almost touch. Also, I need to add a rectangular strip under my plot(very close to it) such that the strip contains some text describing it. Any help is appreciated -- Rajesh.J [[alternative HTML version deleted]]
1998 Mar 16
1
R-beta: multiplot figure problems
I wanted to have a figure consisting of 2 square plots, one above the other (2 rows, 1 column). I am using 61.1 on Linux. I did: > x1<-rnorm(100) > y1<-rnorm(100) > par(mfcol=c(2,1)) > plot(x1,y1,pty="s",mfg=c(1,1,2,1)) > plot(x1,y1,pty="s",mfg=c(2,1,2,1)) The resulting figure consists of two plots, one above each other, BUT they are extremely squished in
2013 Oct 15
1
Q-Q plot scaling in plot.lm(); bug or thinko?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've been looking fairly carefully at the Q-Q plots produced by plot.lm() and am having difficulty understanding why plot.lm() is doing what it's doing, specifically scaling the standardized residuals by the prior weights. Can anyone explain this to me ... ? Multiplying by the weights seems to give the wrong plot, at least for binomial
2011 Dec 07
1
Help! I couldn't put multiple qplot on the same page...
Hi all, I am stuck at ploting multiple graphs on one page. I don't why it doesn't work. All the 6 plots are either exactly the same, or they simply don't plot at all. I made sure that in each iteration the "datasub" and "factorsub" are different ... Could you please help me? Thanks a lot! I did my homework and followed the following advice:
2010 Jul 20
1
Using" fig=" in one screen created with "split.screen()"
Hi, I successfully created 3 screens with the following: fig.mat<-c(0,.5,.5,.5,1,1,0,0,.5,1,.5,1) fig.mat<-matrix(fig.mat,nrow=3) fig.mat split.screen(fig.mat) I can plot three different plots on those 3 screens, but when I try the following: (Trying to create three graphs with a common x-axis but different y-axis on screen 1) screen(1) par(oma=c(3,3,0,0)) par(fig=c(0,1,0,0.33))
2001 Jun 11
0
mult.fig() utility [was "margin text mtext"]
Martin, I have an objection in principle to anything that has the side-effect of clobbering something in the global environment, even something as innocuous looking as "old.par". I certainly object to putting something like that into a public library, however clever and useful the code might be. It just is not safe. As a quick way round this I suggest the following (R only) solution:
2000 Feb 14
0
summary : par(fig)
many thanks to P. Dalgaard, J. Fox, J. Lemon, JE. Paradis and J. Polzehl for their quick replies. The original posting is at the end of this summary. I've not well explained myself but I don't wanted to use par(mfrow) or par(mfcol) because I wanted to plot very different graphics and this solution doesn't match my needs. E. Paradis and P. Dalgaard made me discover a new (for me!)
1999 Dec 02
1
problem with par(fig=value)
hello all, I want to draw a figure with multiple plot on the same page using the par(fig=value) parameter but > par(fig = c(0, 50, 60, 95)/100, adj = 5/10) > eboulis(iris.acp) > par(fig = c(45, 100, 60, 95)/100, mgp = c(3, 1/2, 0)) > boites(iris.acp) draw the graphics on 2 different pages. what am I doing wrong ? thanks for your help. Mathieu [using R 0.65 under Linux Redhat
2004 Mar 22
3
Setting the 'fig' graphic parameter
Hi guys, # I would like to plot a figure with the following layout: # # ---------------------------- # | | | # | | | # | | | # | |--------| # | | | # | | | # | | | # ---------------------------- x <- rnorm(100) y <- rnorm(100)
1998 Jan 30
1
R-beta: Fig driver for "R"?
Hello all R users and developers! In the "Notes on R" I have found the following information: (page 60, 13-th footnote) "... a better solution is to use the fig() driver (available from statlib) and use a conversion program, such as fig2dev, to convert the resultant fig code to Encapsulated Podtscript." I was very glad to read it, because I'm often forced to use
2005 Nov 18
1
How to plot two dataset in one fig?
Hi all, I am new in R tool. I would like to plot two dataset in in fig. Here is what I did for both a and b data sets jpeg(file="a.jpeg") dat<-read.table('a', header=F, sep=',') dim(dat) y<-dat[,1] y<-y[!is.na(y)] plot(y);lines(lowess(y, f=0.05), col = ("red"), lwd=5) dev.off Two questions: 1. How I can save this lowess smooth data? 2. Once I
2000 Feb 14
2
par(fig) problem
hello R-users, I'd like to plot four graphics on the same page but with different sizes. I've tried to use : par(fig=c(0,0.5,0,0.6)) plot(fig1) par(fig=c(0.5,1,0,0.6)) plot(fig2) etc... but when a figure is plotted, it erase the previous. I've tried to pass 'new=T' to plot function but it's not possible. What can I do ? is it a bug ? I've already reported this a 2 or
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 as to
2012 May 12
2
ggplot simple question.
I have a matrix like this Name 1 2 3 4 5 NM_001039514 1.033557047 0.7469879518 0.9004524887 0.8613861386 0.7952499048 NM_001039723 1.0759493671 1.2315789474 0.8666666667 1.1142857143 0.9428011471 NM_001042605 0.9897435897 0.8870431894
2010 May 26
1
Is possible a mini-plot into a big plot with Lattice?
Hello, I want to do with Lattice functions (qqmath, histogram) a figure like this below. n <- 1000 x <- rnorm(n) qqnorm(x); qqline(x) op <- par(fig=c(.02,.5,.5,.98), new=TRUE) hist(x, xlab="", ylab="", main="", axes=FALSE) box() par(op) Is possible? Thanks. Walmes Zeviani. _________________________________________________________________