[R] uniform and clumped point plots

2006-05-21 Thread Adrian Baddeley
Dear Terry the R package 'spatstat' contains a large number of functions for generating point patterns with varying degrees of randomness or orderliness. They include: rpoint n independent random points rpoispprandom number of independent random points

Re: [R] uniform and clumped point plots

2006-05-21 Thread Ben Bolker
One of the replies suggested using the Strauss process. This does not produce clumps. You can get weakly clumped point patterns from the Geyer process and some of the other Gibbs processes offered in 'rmh', but in general this is not the best way to create clumps. Hope this helps

Re: [R] uniform and clumped point plots

2006-05-19 Thread Jim Lemon
Beutel, Terry S wrote: I am trying to generate two dimensional random coordinates. For randomly distributed data I have simply used xy-cbind(runif(100),runif(100)) However I also want to generate coordinates that are more uniformly distributed, and coordinates that are more

Re: [R] uniform and clumped point plots

2006-05-18 Thread Dave Armstrong
Dear Terry, I'm not entirely sure if this is what you're looking for, but here's my suggestion. To make more uniformly distributed points, you might try something like xy - expand.grid(list(seq(0,1,.1), seq(0,1,.1))) plot(jitter(xy[,1], 1.5), jitter(xy[,2], 1.5)) Like I said, I don't know if

Re: [R] uniform and clumped point plots

2006-05-18 Thread Ritwik Sinha
Hi, If you are looking for data clustered in two dimenstions you can use the multivariate normal package. Ritwik Sinha http://darwin.cwru.edu/~rsinha [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

Re: [R] uniform and clumped point plots

2006-05-18 Thread Ben Bolker
Beutel, Terry S Terry.Beutel at dpi.qld.gov.au writes: I am trying to generate two dimensional random coordinates. For randomly distributed data I have simply used xy-cbind(runif(100),runif(100)) However I also want to generate coordinates that are more uniformly distributed, and

Re: [R] uniform and clumped point plots

2006-05-18 Thread Sean O'Riordain
Perhaps you're looking for something along the lines of Sobol sequences - refer Section 7.7 of Numerical Recipes in C by Press et al. Sean On 18/05/06, Ben Bolker [EMAIL PROTECTED] wrote: Beutel, Terry S Terry.Beutel at dpi.qld.gov.au writes: I am trying to generate two dimensional random

[R] uniform and clumped point plots

2006-05-17 Thread Beutel, Terry S
I am trying to generate two dimensional random coordinates. For randomly distributed data I have simply used xy-cbind(runif(100),runif(100)) However I also want to generate coordinates that are more uniformly distributed, and coordinates that are more contagiously distributed than the