Displaying 20 results from an estimated 3000 matches similar to: "Fw: Plotting in subareas using par(fig=) parameter"
1998 Mar 26
1
R-beta: multiplot using fig
I followed Bill Venables's suggestion and tried to make a multiplot figure
with fig (using R .62).
> x<-rnorm(100)
> y<-rnorm(100)
> x11()
> par(fig=c(0,2/3,0,1))
> plot(x,y)
> par(fig=c(2/3,1,0,1))
> qqnorm(x)
> postscript(file="twoplot.ps")
> par(fig=c(0,2/3,0,1))
> plot(x,y)
> par(fig=c(2/3,1,0,1))
> qqnorm(x)
However
2003 Jan 13
4
Ideas needed on automation of R
I need some guidance on what is the best way to automate R I am aware of
Rterm.
First question: Is it true that R is not currently OLE accessible under
Windows 2000?
Second question: Is there an R command that echoes all R Console results to
a run log system file?
My first attempt to write a run log file is the example from the R Data
Inport/Export documentation.
> zz<-
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),
2003 Dec 19
2
weighted regression
To all
I have some simple questions pertaining to weights used in regression.
If the variability of the dependent variable (y) is a function of the magnitude of predictor
variable (x), can the use of weights give an appropriate answer to the regression parameters
and the std errors?
Assume that y at x=1 and 6 has a standard deviation of 0.1 and at x=11 it is 0.4
Then according to a web page on
2003 Dec 20
7
error bars around a point
All
Is there an R command to produce error bars around
a plotted point. Crawley's book uses the command
error.bar() but my version of R rejects it. Must be an
S+ command(?).
Thanks
REX
[[alternative HTML version deleted]]
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 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
2003 Feb 01
2
Re-assigning vector elements based on their initial values.
Is there an eloquent solution to re-assign vector element values?
I have a vector which contains chemical data, some of them are "flagged" as
non-detected values by their negative values.
I can find the statistics on the positive values in vector "v" simply by
typing:
>v<- c(5,5,-3,-3,7,8,10)
> v[(v>0)]
[1] 5 5 7 8 10
I can also convert to positive values by
2007 Jan 31
4
possible spam alert
The last two times I have originated message threads on R or
Bioconductor I have received the message included below from someone
named Patrick Connolly. Both times I was the originator of the message
thread and used what I thought was a unique subject line that explained
as best I could what my question was. Patrick seems to be implying that
I am abusing the R and BioC help newsgroups in this
2003 Jan 13
1
Fw: Plotting text-string real_date names at excel_date positions.
How do I post text-string dates along the x-axis instead of the excel_date
position values?
I would like to plot a time-series of chemical values changing with time
The first column is the internal date from excel. This should be the x-axis
position of a graph
of the plotted data.
The second column is a text-string of date. This should be what is posted
(instead of the excel_date).
The third
2003 Jan 14
1
comparing class() -- R=NULL and S+=numeric
I'm just reading Modern Applied Statistics with S, 4th Ed., Venables and
Ribley
I'm typing in their examples in both R and S+. I need insight in the
difference
in the class() statement shown in Chap. 2. Example from book:
> names(powers.of.pi) <- -2:2
> powers.of.pi
-2 -1 0 1 2
0.1013212 0.3183099 1.0000000 3.1415927 9.8696044
>
2003 Jan 15
1
Is R really an open source S+ ?
This is not a criticism. I'm just curious. Is there an effort to keep R
comparable to S+?
Or are the two languages diverging? I am doing what probably legions have
done before me,
and legions will after me...using R on examples from text books written with
S+ code. Most of the
time everything appears to be equivalent. And then there are amazing
divergences in commands. For
instance:
S:
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
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))
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!)
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)
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
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
2014 Apr 14
2
R 3.1.0: 'R CMD Sweave' deletes non tex files created upon batch mode exit
>>>>> Marc Schwartz <marc_schwartz at me.com>
>>>>> on Sun, 13 Apr 2014 10:22:55 -0500 writes:
[on the R-SIG-Mac mailing list] :
> Hi all,
> With R version 3.1.0 on OSX, using either the Snow Leopard or the Mavericks binary installation on a Mac with fully updated Mavericks, there has been a change in behavior since 3.0.3.
I've just
2011 May 06
1
Sweave: no eps fig
Hi everyone,
I'm using R, Latex and Sweave for some years now, but today it confuses me alot:
Running Sweave produces only figures in .pdf format, no .eps figures.
The header looks like this:
<<echo=TRUE, fig=TRUE, label=Fig1>>=
There was no error message.
Does anybody have an idea?
Any changes in the Sweave-package?
Or a missing driver or something like that?
I recently