R2.7.1, WinXP
Hi,
My question is probably easy to answer, but I can't seem to solve it myself.
I need to read in a large number of datasets that were generated by
another (old) software program. Each data file contains a bunch of
additional code generated by the external software. It lists th
R2.7.1, WinXP
Hi,
I have a polygon inside a circle as follows:
radius <- 3
x <- seq(-radius,radius,length=2000)
y <- sqrt(radius^2-x^2)
xx <- c(x,-x)
yy <- c(y,-y)
plot(xx,yy, xlim=c(-radius,radius),ylim=c(-radius,radius), type="l",
ylab="", xlab="", axes=F)
radius <- 2.7
x1 <- seq(-radius,
[i],y1[i+1],y2[l-i],y2[(l+1)-i]),
col = rainbow(1, start = 0+(0.33*i)/l, end = 2/6),
border=rainbow(1, start = 0+(0.33*i)/l))
}
#you can omit this line if you do not need the border:
polygon(c(x1,x2),c(y1,y2))
It's not ideal I think because for length l = 2000 it's qu
in(y2), y2, min(y2) ) )
xx <- seq(-2.7,2.7, length.out=1000)
xxx <- embed(xx,2)[,2:1]
for(i in 1:999) {
clipplot(tmpfun(), xxx[i,], c( min(bottom(xxx[i,])), max(top(xxx[i,])))
)
}
polygon(c(x1,x2),c(y1,y2))
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Thanks Barry, that works beautifully!
Roger
Barry Rowlingson schreef:
2008/8/17 Roger Leenders <[EMAIL PROTECTED]>:
WinXP, R2.7.1
Thanks so much to all who have reponded to my inquery. The solutions are
most helpful.
There is only one final thing that I can't seem to get ri
Win7, R-2.9.1
Dear list,
I have a large (nxm) matrix which is the output of an analysis. Since it
is so large, I would like to use output formatting to make it easier to
find particular values and patterns in the matrix. In particular, I want
to print the matrix as follows:
- cells with a va
R 2.7.0, WinXP
Hi list,
I have written some code in R that I would like to share with others who
are not R-users. Is there a way to compile the code so it will run
outside of R?
The best thing would be a functionality to compile the code into a ".exe"
file that does not require the user to have
, Jun 24, 2008 at 2:01 PM, Roger Leenders <[EMAIL PROTECTED]> wrote:
R 2.7.0, WinXP
Hi list,
I have written some code in R that I would like to share with others who
are not R-users. Is there a way to compile the code so it will run
outside of R?
The best thing would be a functional
8 matches
Mail list logo