Ricardo González-Gil

Logo

15+ years of experience in data analysis and research in marine ecology and oceanography, fisheries studies, and aquaculture sustainability.

View the Project on GitHub ricardogonzalezgil/portfolio

Data Analyst and Ecologist

Table of Contents

IT Skills 🖥️

Education 🎓

Work Experience 💼

Personal Programming Projects 🔢

Make your plots more intuitive: label by Month, not Day of year

For the full exercise with code, visit this link.

This short exercise demonstrates how to improve the readability of seasonal plots by replacing numeric day-of-year (DOY) values with month-based labels on the x-axis. Using surface temperature data from the Scottish Coastal Observatory at Stonehaven, I show how even a small change in labeling can make time-series patterns easier to interpret — especially for broader audiences. The approach compares the default DOY labeling and an enhanced version with month separators and initials.

Fig. Comparison

Assigning positions in blocks of repeated elements in a vector: a performance comparison in R

For the full exercise with code, visit this link.

This exercise explores four methods for assigning positions within consecutive, repeated elements in a vector, efficiently labeling sequences of a target value while keeping other values unchanged. For example, given a vector like 0 0 0 1 1 1 1 0 0 1 1 0 0 0 1 1 1 1 0 0 0 0 0, the desired output is 0 0 0 1 2 3 4 0 0 1 2 0 0 0 1 2 3 4 0 0 0 0 0, a need that arises in various applications such as time series analysis (identifying trends and patterns in sequential data), genomic sequence processing (assigning positions in repeated nucleotides or amino acid sequences), and text data manipulation (detecting and processing repeated words, phrases, or characters). To address these diverse use cases, I developed generalized function versions for four different methods and tested their efficiency across vectors of varying lengths, scaling up to 1 × 10⁶ elements (Figs. 1 and 2). The key takeaways are:

  1. Different approaches yield the same result with varying trade-offs in efficiency, readability, and flexibility.
  2. rle is the best choice when speed is critical.
  3. Benchmarking is essential for selecting methods in large-scale data processing.
  4. Alternative implementations not covered here may further optimize performance.

Fig. 1: Performance comparison

Fig. 2: Performance comparison for each vector length

Research Figures

A collection of collages featuring selected plots and plot fragments from my research contributions, showcasing different ways I visualize data. These highlight the final visualization results rather than full analytical workflows. To explore the complete set of plots, click on the corresponding paper links. For a full list of publications, see the Publications section.


González-Gil, R., Banas, N. S., Bresnan, E., & Heath, M., R. (2022). The onset of the spring phytoplankton bloom in the coastal North Sea supports the Disturbance Recovery Hypothesis. Biogeosciences (highlight paper), 19, 2417-2426. DOI: 10.5194/bg-19-2417-2022

DRH paper gallery

González-Gil, R., Taboada, F. G., Cáceres, C., Largier, J. L. & Anadón, R. (2018). Winter mixing preconditioning of the spring phytoplankton bloom in the Bay of Biscay. Limnology and Oceanography, 63(3), 1039-1447. DOI: 10.1002/lno.10769

Spring bloom onset C Sea paper gallery

González-Gil, R., Taboada, F. G., Höfer, J., & Anadón, R. (2015). Winter mixing and coastal upwelling drive long-term changes in zooplankton in the Bay of Biscay (1993–2010). Journal of Plankton Research, 37(2), 337–351. DOI: 10.1093/plankt/fbv001

Zooplankton C Sea paper gallery

Graphical Abstracts

Visual summaries of some of my research papers, designed to communicate complex findings in a concise and engaging format.


González-Gil, R., Taboada, F. G., Cáceres, C., Largier, J. L. & Anadón, R. (2018). Winter mixing preconditioning of the spring phytoplankton bloom in the Bay of Biscay. Limnology and Oceanography, 63(3), 1039-1447. DOI: 10.1002/lno.10769

Download the graphical abstract here

Grph. abstract Spring bloom onset C Sea paper

González-Gil, R., Taboada, F. G., Höfer, J., & Anadón, R. (2015). Winter mixing and coastal upwelling drive long-term changes in zooplankton in the Bay of Biscay (1993–2010). Journal of Plankton Research, 37(2), 337–351. DOI: 10.1093/plankt/fbv001

Download the graphical abstract here

Grph. abstract Zooplankton C Sea paper

Publications 📝

Peer-Reviewed Articles

Book Chapters