Differences
This shows you the differences between two versions of the page.
| — | en:ecovirt:roteiro:pad_spat [2022/09/15 16:35] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Spatial Pattern ====== | ||
| + | |||
| + | In this tutorial we are going to deal with recognizing one of the most basic patterns of a plant population: whether individuals are spatially closer or further apart than would be expected if they were simply randomly distributed (i.e., the location of an individual does not improve the prediction of where other individuals may be)). | ||
| + | |||
| + | ===== Target ===== | ||
| + | |||
| + | {{ : | ||
| + | Investigate the spatial pattern in plant populations and discuss what underlying processes could generate the observed patterns. First of all, however, we need to define some concepts. | ||
| + | |||
| + | ===== Context ===== | ||
| + | |||
| + | A spatial pattern is a predictable structure that can be detected and quantified. In general, a pattern is considered to be a different structure than a random one, however, in the case of spatial patterns (and others as well) the random pattern can also be considered a pattern, after all it has {{: | ||
| + | <WRAP center round box 60%> | ||
| + | // | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | Detecting a spatial pattern can be important both for understanding the mechanisms that generate the pattern, for deciding on the sampling method and scale, and for planning the management of a population. Some desirable properties of a spatial pattern measure are: | ||
| + | |||
| + | * clearly differentiate the pattern; | ||
| + | * not be affected by: sample size, population density, or variation in sample size and shape; | ||
| + | * be statistically tractable: able to calculate the uncertainty of the value and test for differences between samples. | ||
| + | |||
| + | For this practice we will use a point randomness estimate called K-Ripley. First we will use simulated distribution data with different patterns and then use the same technique to detect the spatial pattern in a natural population.< | ||
| + | |||
| + | |||
| + | |||
| + | // | ||
| + | |||
| + | /* [[ep1| Parte 1]]: simulando amostras dentro da parcela; | ||
| + | |||
| + | * [[2019: | ||
| + | */ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Multiscale Patterns ===== | ||
| + | |||
| + | <WRAP center round box 40%> | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | /* | ||
| + | The [[ep1|scatter index]]((you can run it at another time!)) script demonstrates how the distribution pattern can be affected by the size of the plot used. This means that the spatial pattern can be **scale dependent**. | ||
| + | */ | ||
| + | In this practice we will quantify the spatial pattern using a multiscale method. Multiscale methods allow, with a single metric, to assess how the spatial pattern varies with scale. We will describe the spatial pattern for the total set of individuals in a population in a delimited area and we will assess the pattern from the scale of the neighborhood of individuals to the wider scale of the population. | ||
| + | <WRAP right round box 25%> | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | |||
| + | For practice we will use a little program called [[https:// | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In **Programita** there are several measurements that can be used to calculate the spatial pattern, we will use two of them: Ripley' | ||
| + | |||
| + | Both are point-based approaches, which use the calculation of point-to-point distances within a bounded area. These measures can be used for univariate analyses, that is, identifying the pattern for a single class of points, or for bivariate analyses, which identifies the pattern between two types of points. Bivariate analyzes can be used in the context of populations to verify whether individuals of a given stage are spatially associated with another, or in the context of community structuring to analyze whether there is attraction or repulsion in the occurrence of one species in relation to another. | ||
| + | ==== Ripley' | ||
| + | {{: | ||
| + | |||
| + | Ripley' | ||
| + | |||
| + | <WRAP center round box 80%> | ||
| + | {{ : | ||
| + | Figure: Implementation of Ripley' | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | The operation is repeated for different '' | ||
| + | |||
| + | |||
| + | $$ K_{(r)} = \frac{\sum_{i\neq{j}}^{i}I({d_{ij}< | ||
| + | |||
| + | |||
| + | Where: | ||
| + | * $d_{ij}$ is the distance from point $i$ to point $j$; | ||
| + | * $I({d_{ij}< | ||
| + | * $n$ is the total number of points; | ||
| + | * $\lambda$ is the density of the points. | ||
| + | |||
| + | The visual interpretation of '' | ||
| + | |||
| + | $$ L_{(r)}= (\sqrt{\frac{K_{(r)}}{\pi}}-r) $$ | ||
| + | |||
| + | This transformation makes the value of '' | ||
| + | ==== O-ring (O(r)) ==== | ||
| + | {{: | ||
| + | |||
| + | The **O-ring** stat is similar to Ripley' | ||
| + | |||
| + | <WRAP center round box 80%> | ||
| + | {{ : | ||
| + | Figure: Implementation of the //O-ring// statistic: count of the number of points far from //i// along the radius //r//. Taken from Wiegand & Moloney (2004). | ||
| + | |||
| + | </ | ||
| + | |||
| + | So we define $O(r)$ as: | ||
| + | $$ O_{(r)} = L_{(r)} - L_{(r-l)}$$ | ||
| + | |||
| + | Where: | ||
| + | * $r -l$ : is the radius minus the width of the ring ((equal to the inner radius of the ring)) | ||
| + | In complete spatial randomness $O(r) = \lambda$ (pattern intensity), when the pattern is aggregated $O(r) > \lambda$ and when it is homogeneous $O(r) < \lambda$ | ||
| + | |||
| + | |||
| + | <WRAP center round tip 60%> | ||
| + | The measures $K_{(r)}$, $L_{(r)}$ or $O_{(r)}$ present theoretical analytical solutions for the pattern defined as Poisson process or Complete Spatial Randomness (CAE). That is, when the distribution of points in the studied space is not different from what was expected by chance. For a given density of points we were able to calculate these theoretical values for any radius. Thus, to interpret the spatial pattern of the observed points we need: | ||
| + | |||
| + | * calculate observed and theoretical values for CAE; | ||
| + | * compare these values; | ||
| + | * define when a difference is acceptable or not to claim that the pattern is different from random; | ||
| + | |||
| + | For the first two topics above, we used the formulas and calculated the values. To take the subjectivity out of the third, we can calculate confidence intervals or generate confidence envelopes ((equivalent to confidence interval obtained by numerical simulation )) of confidence by computer simulations, | ||
| + | |||
| + | </ | ||
| + | ===== Simulted Points Pattern ===== | ||
| + | |||
| + | |||
| + | <WRAP round box center centeralign 60% > | ||
| + | <WRAP round safety > | ||
| + | **// | ||
| + | </ | ||
| + | {{ : | ||
| + | Which process created this points pattern? | ||
| + | </ | ||
| + | |||
| + | ==== General Instructions ==== | ||
| + | |||
| + | * 1. Download the files related to spatial pattern 1 or 2. If open a page showing the data, right-click the link to save the file to your computer: | ||
| + | <WRAP center round box 80%> | ||
| + | //**__ Data for Spatial Analysis__**// | ||
| + | === Default 1 === | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | |||
| + | === Default 2 === | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | * {{: | ||
| + | |||
| + | </ | ||
| + | |||
| + | * if you don't have '' | ||
| + | * unzip the file // | ||
| + | * 2x click to open the executable file '' | ||
| + | |||
| + | |||
| + | Welcome to **Programita**! Now let's open the data that we are going to work with. | ||
| + | |||
| + | |||
| + | **Programita** accepts text files with .dat and .asc extensions. They are files in text format, separated by tabs (or spaces). The data file has the following structure: | ||
| + | |||
| + | ** The first line contains general information about the data file:** | ||
| + | * minimum value of x; | ||
| + | * maximum value of x; | ||
| + | * minimum value of y; | ||
| + | * maximum value of y; and | ||
| + | * total number of individuals | ||
| + | |||
| + | ** From the second line on, are the data of the points that will be analyzed:** | ||
| + | * first column with the x coordinates of the individuals; | ||
| + | * second column with the y coordinates of the individuals; | ||
| + | * third column with points of pattern 1 identified by 1 and pattern 2 by 0 ((in the case of bivariate data)); | ||
| + | * fourth column with the points of pattern 1 identified by 0 and pattern 2 by 1 ((also in the case of data with two types of points)). | ||
| + | |||
| + | In the case of univariate data, the third column will always be 1 and the fourth column will always be 0. For bivariate data the third and fourth columns will have values of 0 and 1 according to the point pattern. | ||
| + | |||
| + | <WRAP center round box 80%> | ||
| + | {{ : | ||
| + | Fig. Example of a .dat file in the format used in // | ||
| + | </ | ||
| + | ==== Univariate Pattern: all points ==== | ||
| + | |||
| + | * 1. Check if the //Input data file// window is showing the .dat files. If not, check that the programita executable file is in the same folder as the //.dat// files. | ||
| + | <WRAP center round box 60%> | ||
| + | <WRAP center round important 60%> | ||
| + | Depending on your browser configuration, | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | * 2. in the menu on the left select the file ** padrao" | ||
| + | |||
| + | |||
| + | <WRAP center round box 60%> | ||
| + | {{ : | ||
| + | Figure. // | ||
| + | </ | ||
| + | * 3. In //**How your data are organized**// | ||
| + | * 4. Let's start using Ripley' | ||
| + | * 5. In //**Select modus of data**// select //**List with coordinates in the grid**//. When selecting this option, a window will appear with the option //**Select a new cell size**//: | ||
| + | <WRAP center round box 60%> | ||
| + | {{ : | ||
| + | |||
| + | </ | ||
| + | * 6. If you have less than 500 points, change the // | ||
| + | * 7. Done all that, you should be like this: | ||
| + | <WRAP center round box 60%> | ||
| + | |||
| + | |||
| + | {{ : | ||
| + | |||
| + | </ | ||
| + | * 8. You can now take a deep breath and hit the // | ||
| + | |||
| + | |||
| + | The program' | ||
| + | |||
| + | However, this is not enough to state at what scales the population is aggregated. For this we need to compare the observed result with the pattern that would be generated by the completely random distribution of points. This null model is called **// | ||
| + | |||
| + | To do this you must: | ||
| + | * 9. select the option **// | ||
| + | * 10. in the window **//Select a null model//** select the null model //**Pattern 1 and 2 random**//; | ||
| + | * 11. Make sure your screen looks like the picture and click the // | ||
| + | |||
| + | |||
| + | <WRAP center round box 80%> | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | <WRAP center round box 60%> | ||
| + | <wrap hi>If the simulation is taking too long </ | ||
| + | * hit the //stop// button next to the //Calculate index//; | ||
| + | * select another //" | ||
| + | * in the //Select a new cell size// window, change //proposed cell size // to 2; | ||
| + | * in the window // Select a null model// change //# simulations// | ||
| + | * press the //Calculate index// button again; | ||
| + | | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | <WRAP center round important 80%> | ||
| + | // | ||
| + | |||
| + | | ||
| + | // | ||
| + | |||
| + | |||
| + | <WRAP round tip> | ||
| + | **// | ||
| + | Make a **__//Print Screen// | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | * 12. Do the same procedure, but in **//Which method to use//** select **// | ||
| + | * 13. Compare the results between the L-Ripley and the O-Ring. | ||
| + | |||
| + | |||
| + | <WRAP round box center 80%> | ||
| + | <WRAP round notice> | ||
| + | **// | ||
| + | </ | ||
| + | * repeat parsing for files with: | ||
| + | * the points of the parents (adults): // | ||
| + | * the points of the associated points - offspring (youth): // | ||
| + | * interpret the result for each type of point; | ||
| + | </ | ||
| + | ==== Bivariate Pattern: two classes of points ==== | ||
| + | |||
| + | // | ||
| + | <WRAP center round box 80%> | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | |||
| + | Let's now analyze the pattern of the associated points (PROLE) in relation to the parents (PAR), following the same procedure as before. | ||
| + | * 1. select the file with the separation of classes of parent and associated points: // | ||
| + | * 2. under //**What do you want to do**// select the option // | ||
| + | * 3. in //**How your data are organized**// | ||
| + | * 4. in this case, we are interested in the cumulative scale pattern analysis to understand how far there is aggregation, | ||
| + | * 5. in //**Select modus of data**// select //**List with coordinates in the grid**// | ||
| + | * 6. to test whether there is aggregation of PROLE points in relation to PAR , we will use the confidence envelope. select option // | ||
| + | * 7. run the analysis by pressing: // | ||
| + | * 8. Interpret the results. | ||
| + | |||
| + | <WRAP center round box 80%> | ||
| + | // | ||
| + | |||
| + | Algorithm is a sequence of steps to perform a task. The points of the data files were generated by a very simple algorithm in two phases: first the parental points were generated and then the associated points (offspring). Describe a sequence of tasks ((eg: generate 10 x values from a uniform random distribution from 0 to 100; generate values from a sequence of 10 to 90 at every interval of 5 as y.... )) which would be able to generate the point distribution (including both point classes) that you observed from your data file. | ||
| + | |||
| + | </ | ||
| + | ------ | ||
| + | ------ | ||
| + | ===== Distribution of Palm Hearts in the Forest ===== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | The palm heart tree (//Euterpe edulis// Mart.) is a very characteristic species of the Atlantic forests and usually occurs with high densities in more preserved areas. We will now analyze the data referring to a population of palm hearts that occurs in a portion of Restinga forest on Ilha do Cardoso, Brazil. Data were collected in the years 2009/2010 in an area of 10.24ha (320m x 320m). | ||
| + | |||
| + | We prepared three files in the format read by // | ||
| + | - data from juveniles (trunk diameter between 1 and 5 cm): {{ : | ||
| + | - data from adult individuals (trunk diameter > 5 cm): {{ : | ||
| + | - juveniles and adults (default 1 adult, default 2 juvenile): {{: | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | Using the tools available in // | ||
| + | * of the total population of palm hearts; | ||
| + | * juveniles only and; | ||
| + | * adults only. | ||
| + | Investigate whether the distribution of juveniles is associated with that of adults. | ||
| + | |||
| + | <WRAP center round box 60%> | ||
| + | // | ||
| + | Get together in a group of 2-4 students and discuss what possible processes could generate the patterns described. | ||
| + | |||
| + | </ | ||