To begin, we want to load (or download) the packages we will need for this exercise using library:
library(tidyverse) # BiocManager::install("EBImage") library(EBImage) # install.packages("spatstat") library("spatstat") Extending the analysis in section 11.17 for all cell types This exercise asks us to analyze an image of a lymph node and evaluate the spatial dependence for all of the cell types in the lymph node. In this case, the null hypothesis is that each of the cell types are evenly distributed (via a homogenous Poisson process) throughout the lymph node.