# Creating a hexagonal world

It cannot be stated just how important space is in ecology and evolution. The fact that organisms exist in 2 (or 3) spatial dimensions means that any understanding of ecological or evolutionary processes need to be placed in a spatial context or assumptions need to be made that most often don't reflect the biology of the organism or process. Some of these assumptions that are probably most familiar may include panmixia/random mating (partially implies that organisms travel through space with 0 effort) or mass action (ecological interaction rates are proportional to the homogeneous densities of each reactant, meaning that reactants that change instantaneously redistribute themselves in space).

This is not to say that simple models have value---they do! There are obviously advantages to models (conceptual or analytical) that make simplifying assumptions, because they have higher heuristic value, they're analytically more tractable, and they're easier to describe, as some examples. The Lotka-Volterra prey-predator model, for instance, still is still an important teaching tool and is used by in many theoretical models (Journal of Theoretical Biology (v. 404) and Theoretical Ecology (v. 9, issue 2) both had articles with this model).

But often, we wish to make models or understand biological processes with more realism, which is when we evoke space. Keeling (1999, *Advanced Ecological Theory*, Ed. J. McGlade) summarizes different types of spatial models:

- Path or metapopulation model
- Coupled map latices
- Partial differential equations
- Interacting particle systems (cellular automata and artificial ecologies)

When I started my postdoc here at Case Western I was mentoring an undergraduate, K, for her undergraduate honor's thesis. For this project she was interested in modeling the spread of disease in Galápagos sea lions and dogs. The sea lions live on the peripheral shores of the islands and the dogs live in the interior. The best framework that we came up with was a lattice. We first used a square lattice, but it bothered me because of the artifactual effects of the peripheral cells. For instance, in a 10 x 10 grid, we'd model the interior as 9 x 9 cells and the periphery as the 36 outer cells. There are different disease transmission rates between the dogs (interior) and sea lions (periphery) based upon their location. In this square grid, this means that the four corners represent four sea lion populations that are farther away from the dogs, and the only ones that don't make direct contact.

To overcome the problem of a rectangular grid, we decided to create a hexagonal lattice. There are many reasons to use these latices; for example, all neighbor cells are equally distant from a central cell and there are no corner effects. The geometry underlying these grids are a little more burdensome compared to using a rectangular lattice, which is why I imagine they aren't used more often. But further, in R, there is means to even crease a hexagonal distance matrix, let alone graphical support. **Insert me--I have begun to work on a package in R that will allow users to:**

**generate hexagonal lattice coordinates as rectangular or hexagonal grid shapes,****plot hexagonal lattices,****generate hexagonal distance matrices, and****create dynamic plots.**

In the meantime, here is an example of a distance matrix for 25 cells for a hexagonal lattice with a radius of 3. Grids without a 0 in a cell don't have meaning, but this was a draft figure (i.e., a cell without a 0 means that the distance is calculated from a cell that doesn't exist in the hexagonal grid).