Pedro Aphalo


I work as an University Lecturer at the University of Helsinki. I am also a principal investigator. I do research on sensory photobiology of plants, and other aspects of the role of acquisition and use of information by plants in acclimation.

I teach Ecology, Photobiology, Statistics and Reproducible Data Analysis with R and R markdown.


I have been using TeX and LaTeX since around 1987, initially mostly for literate programming in Modula-2 with MWEB. At different times I have used different programming languages (BASIC, Pascal, Modula-2, C, C++, Java, Fortran, 6800 and 8086 assembler), scripting languages (awk, Perl, Ruby) and graphical programming systems (Stella, Simile, FlowStone).

I have been using R since around 1998, before that I used mainly Systat, but occasionally also S-Plus, SAS and MinTab. I have experience in designing and writing of R packages. This experience includes calling Java and Python libraries from R code and also in the use of the Rcpp package to write R-callable functions in C++. I have used markdown and to a lesser HTML, json and XML. As for operating systems I have experience with MS-Windows, Linux and Unix. The first revision control system I used was RCS while nowadays I use Git.

I have developed software and hardware for use in different aspects of my lab's research in plant science and solar radiation.

I have earlier held a lecturer position in Environmental Statistics and taught courses. I started teaching R to MSc students in 2001. I also taught a course on ANOVA and mixed-effects models as well as a course on time-series analysis. I am interested in data visualization, exploratory analysis and on the interpretation of results based on the context of their acquisition.

Current work relevant to Stackoverflow

Of the R packages I have published in CRAN, one with miscellaneous extensions to 'ggplot2', called 'ggpmisc' is currently the most popular.

I have also developed a suite of R packages for use in photobiological research, mainly for quantification of spectral data. Eleven packages from these suite are available through CRAN, while those packages using proprietary drivers (free runtime with closed source) for near-real-time data acquisition are available at the R for Photobiology blog. All sources are at public git repositories at my Bitbucket public depositories.

I have published the book "Learn R: As a Language", published in July 2020 in CRC's The R Series. ISBN 9780367182533.

I am a member of the Foundation for Open Access Statistics (FOAS), the Dataviz society, the TeX Users' Group (TUG) and a former member of the Association for Computing Machinery (ACM). I am member of scientific societies related to ecology and photobiology.

This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
bronze badges

Top tags (9)

Score 5
Posts 3
Posts % 60
Score 4
Posts 2
Score 3
Posts 3
Score 1
Posts 1
Score 1
Posts 1
Score 1
Posts 1

Top posts (5)