search for: samrobertsmith

Displaying 12 results from an estimated 12 matches for "samrobertsmith".

2010 Jul 16
8
save plot
I made a plot, but after I made a second plot, the previous plot was gone. How can I save all the plots in a file (I do not manually copy and paste them one by one)? Thanks. Linda
2005 Nov 29
3
label point
Hi, I have a matrix: [,1] [,2] [1,] 11 31 [2,] 44 50 [3,] 23 100 [4,] 90 31 I use plot to draw the four points. Is there any way to label the point? for insatnce, for (11,31), it is "1", for (44,50), it is "4". Thanks! --------------------------------- [[alternative HTML version deleted]]
2005 Nov 13
4
voronoi
Is there any pure r code to do delaunay or voronoi diagrams? Thanks! --------------------------------- [[alternative HTML version deleted]]
2005 Nov 29
1
transform matrix
I run the following code and got a wrong message. Anyway to transform test1 to a 6 by 6 matrix? many thanks! > test1 1 2 3 4 5 6 1 0.0000000 0.7760856 2.022222 0.6148687 3.0227028 3.2104434 2 0.7760856 0.0000000 1.690790 0.2424415 2.3636083 2.5334957 3 2.0222216 1.6907899 0.000000 1.5939158 1.5126344 1.7304217 4 0.6148687 0.2424415 1.593916
2005 Oct 08
2
color for points
Hi, I have the following code to randomly generate the points: csr <-function(n=60){ x=runif(n) y=runif(n) f=cbind(x,y) } plot(csr()) I wonder how to code to make the first twenty points to be BLUE; second twenty points to be RED; the last twenty points to be GREEN? Thanks, Sam --------------------------------- [[alternative HTML version deleted]]
2005 Oct 14
2
Fortran?
In a package, i type a function name and got the following message: ... tmp <- .Fortran("master", x = as.double(x), y = as.double(y), sort = as.logical(sort), rw = as.double(rw), npd = as.integer(npd), ntot = as.integer(ntot), nadj = integer(tadj), madj = as.integer(madj), ind = integer(npd), tx = double(npd), ty = double(npd),
2005 Nov 20
1
about demo
Hi, I might have a silly question: when I type demo() I saw: graphics A show of some of R's graphics capabilities I wonder how to see the demo of graphics? Thanks! --------------------------------- [[alternative HTML version deleted]]
2005 Nov 29
1
symmetric matrix
I have the following matrix: 1 2 3 4 5 2 0.7760856 3 2.0222216 1.6907899 4 0.6148687 0.2424415 1.593916 5 3.0227028 2.3636083 1.512634 2.426591 6 3.2104434 2.5334957 1.730422 2.608584 0.2184739 the diagonal is 0 and it is a symmetric matrix. Is there any
2005 Oct 08
3
square and points on the same figure
Hi, I have the following code to randomly generate the points: csr <-function(n=60){ x=runif(n) y=runif(n) f=cbind(x,y) } plot(csr()) I wonder how to code to draw a square centering on 0.5,0.5; with the length of each side to be 0.3 on the same figure with these plotted points? Thanks, Sam --------------------------------- [[alternative HTML version deleted]]
2006 Mar 17
1
Neyman-Scott cluster process
Hi there, I want to generate a random point pattern using the Neyman-Scott cluster process using spatstat package in R. After running the following procedures, why i can not see any figures? > nclust <- function(x0, y0, radius, n) {return(runifdisc(n, radius, x0, y0))} > nclust function(x0, y0, radius, n) {return(runifdisc(n, radius, x0, y0))} > X <- rNeymanScott(10, 0.2, nclust,
2006 Mar 23
1
read txt?
which kind of txt file can be read into R? can anyone give me an example? I used a txt file and the result is: Warning message: incomplete final line found by readTableHeader on 'c:/temp/q.txt' Linda
2005 Oct 30
2
identity matrix
I found a very odd thing. A matrix multiplied by its inverse matrix should be an identity matrix. But why the following thing happens? <a%*%solve(a) is not an identity matrix> > x%*%t(x) [,1] [,2] [,3] [,4] [,5] [1,] 108.16 58.24 32.24 66.56 225.68 [2,] 58.24 31.36 17.36 35.84 121.52 [3,] 32.24 17.36 9.61 19.84 67.27 [4,] 66.56 35.84 19.84 40.96 138.88 [5,]