This article is intended as a guideline to the use of two exploratory data analysis methods, namely STATICO and COSTATIS. Both techniques have already been used in the field of ecological data analysis, and we present a rapid survey of the ecological literature on three-ways analysis methods. Here, we wish to share some advanced computation and graphical display scripts to help ecologists use these methods. We first recall the main principles of these two methods for the analysis of the relationships between the structures of two series of data tables. In the context of ecology, these two series can be for example i) a series of species data tables and ii) a series of environmental parameters tables. A detailed, real-size example is presented to show how this strategy can be put in place using the ade4 and adegraphics packages for R. This example relates to the ecology of aquatic Heteroptera in the Medjerda watershed (Tunisia). We show how the outputs of the two methods can be used to interpret the relationships between aquatic Heteroptera species distribution and environmental parameters. Several R scripts to conduct the computations and draw suitable graphical displays are reproduced and explained in the text and in five appendices. Keywords: ade4 , three-ways data analysis, statico, costatis, aquatic Heteroptera, Medjerda