[R] Spatstat: Mark correlation function

2012-11-23 Thread AMFTom
I normally use the following code to create a figure displaying the mark correlation function for the point pattern process "A": M<-markcorr(A) plot(M) I have now started to use the following code to perform 1000 Monte Carlo simulations of Complete Spatial Randomness (CSR). It is a Monte Carlo t

Re: [R] Confidence intervals in Ripley's K function - a little challenge...

2012-11-15 Thread AMFTom
Sorry - CSR = Complete Spatial Randomness. -- View this message in context: http://r.789695.n4.nabble.com/Confidence-intervals-in-Ripley-s-K-function-a-little-challenge-tp4649392p4649597.html Sent from the R help mailing list archive at Nabble.com.

[R] Confidence intervals in Ripley's K function - a little challenge...

2012-11-13 Thread AMFTom
I have plotted Ripley's K function for a spatial point pattern for 12 plots, with 39 Monte Carlo simulations for complete spatial randomness (CSR). I would like to analyse these data as follows: I would like to know for which plots the Ripley's K function deviates from CSR at a number of confide

[R] Quadrat counting with spatstat

2012-05-31 Thread AMFTom
I have photographs of plots that look like so: http://r.789695.n4.nabble.com/file/n4631960/Untitled.jpg I need to divide it up so each circle has an equal area surrounding it. So into 20 equal segments, each of which contains a circle. Quadratcount is not sufficient because if I divide it up int

[R] Creating a point pattern with cartesian co-ordinates

2012-05-03 Thread AMFTom
I have the following data from an image analysis program, in which the x and y co-ordinates are locations of the centroids of shapes on a 2 dimensional plot. The Y co-ordinates were positive, but I changed them to negative as the resulting scatterplot was upside down (the image analysis program rea

Re: [R] Creating a point pattern with spatstat

2012-04-20 Thread AMFTom
The graphic produced was what I was after, except it was inverted. The original tabular data represents a plot as oriented in the field i.e. with North at the top, South at the bottom. The graphic from this had South at the top and North at the bottom, so I input the data the other way around i.e.

[R] Creating a point pattern with spatstat

2012-04-16 Thread AMFTom
I have presence/absence data in the following format: 1 2 3 4 5 6 7 8 9 10 11 12 1 1 1 1 1 1 1 1 1 1 1 1 0 2 1 1 1 1 0

Re: [R] Help - Importing data from txt and xlsx files

2012-04-16 Thread AMFTom
Hi all, it turns out I had left absent data as a blank space instead of filling it with a zero. Now I am able to import data. Thanks for all your help, I'm sure I will be calling on your expertise in future. Tom -- View this message in context: http://r.789695.n4.nabble.com/Help-Importing-data

Re: [R] Help - Importing data from txt and xlsx files

2012-04-13 Thread AMFTom
Dear Thierry, Thanks for your help. Now though, I try to import data from a txt file, and it says either > mydataframe <- read.table("Lv2.8.txt") Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 3 did not have 15 elements or > mydataframe <- read.table("Lv

[R] Help - Importing data from txt and xlsx files

2012-04-13 Thread AMFTom
Hi all, I have just started to use R for my PhD project and have no previous experience in programming. I am having trouble importing data to R. This is the output: > mydata <- read.table("Lv2.8.txt") Error in file(file, "rt") : cannot open the connection In addition: Warning message: In file(