spacodiR is a cross-platform package, written for the R environment, for studying partitioning of diversity among natural communities in space and time. Complementing and extending existing software, spacodiR allows for hypothesis testing and parameter estimation in studying spatial structuring of species-, phylogenetic- and trait diversities.