Gaston Sanchez

I'm a lecturer in the Department of Statistics, at the University of California, Berkeley. Teaching undergraduate courses has been my main professional activity for the past six years. However, for about a decade and a half, I've spent my time:

  • authoring materials (e.g. books, tutorials, slides) for teaching purposes,
  • using graphical displays to understand data with visualization,
  • programming and applying multivariate methods for exploring, analyzing, and visualizing data in a context of multiple variables and high dimensionality,
  • reflecting about computational reproducibility topics and open science,
  • and helping researchers and scientists analyze their data.

Give Now

If you find any value and usefulness in the resources of this site, please consider making a one-time donation in any amount. Your support really matters.

Alternatively, you can also help me with my Amazon wishlist.


All Models Are Wrong: Concepts of Statistical Learning

Introductory text about concepts of Statistical Learning, covering some of the common supervised as well as unsupervised methods (work in progress).

A Matrix Algebra Companion for Statistical Learning

The purpose of this book is to help you understand how statistical notions are connected to matrix algebra concepts that constantly appear around Statistical Learning methods (work in progress).

Principal Component Analysis for Data Science

This book aims to provide an introduction to Principal Component Analysis for Data Science.

Introduction to Computing with Data

This is an introductory book to computational data analysis with an emphasis on principles of data manipulation using R, data technologies, and basics of command line interface (work in progress).

Handling Strings with R

This book aims to help you get started with manipulating strings with R. It provides an overview of several resources that you can use for string manipulation. It covers useful functions in packages "base" and "stringr", printing and formatting characters, regular expressions, and other tricks.

Pack YouR Code

This book aims to help you get started with the creation of a basic R package, based on the so-called S3 classes.

A Booklet of R Factors

This little book focuses on the basics, and not so basics, of R factors (work in progress).

PLS Path Modeling with R

This book provides a hands-on introduction to Partial Least Squares Path Modeling (PLS-PM) using the R package "plspm".

The Saga of PLS

What we know today as Partial Least Squares (PLS) is the result of a long period of evolution, with a vast range of methods and techniques proposed since the late 1960s / early 1970s. This book narrates the story behind the origins, development, and evolution of PLS methods.


Some of the courses I've taught in the Department of Statistics, UC Berkeley.

  • Stat 2: Introduction to Statistics
  • Stat 20: Introduction to Probability and Statistics
  • Stat 131A: Introduction to Probability and Statistics for Life Scientists
  • Stat 133: Concepts in Computing with Data
  • Stat 151A: Linear Modeling
  • Stat 154: Modern Statistical Prediction and Machine Learning
  • Stat 159: Reproducible and Collaborative Statistical Data Science
  • Stat 243: Introduction to Computational Statistics


I'm a passionate R user, and in a not so distant past, I was an active developer and maintainer of several R packages. All the code is available in my github repositories.

plspm provides a toolkit exclusively dedicated to Partial Least Squares Path Modeling (PLS-PM) analysis.

pathmox is dedicated to the Pathmox approach for obtaining segmentation trees in PLS-PM analysis.

plsdepot provides a set of tools for performing Partial Least Squares (PLS) analysis of one or two data tables.

arcdiagram is a minimalist package to help you plot pretty arc diagrams in R.

colortools is designed to help users generate color schemes and color palettes.

pathdiagram provides simple functions to draw basic PLS path diagrams in R.

cointoss is a toy package with simple functions for simulating tossing a coin.

dieroller is a toy package with simple functions for simulating rolling a die.

binomial is a toy package with simple functions for computing binomial probabilities.

matrixkit is an R package that provides a first aid kit for some matrix operations commonly used in multivariate data analysis methods.

turner provides a set of handy functions to turn vectors (and lists of vectors) into other indexed data structures.

tester provides human readable functions to test characteristics of some common R objects.

Souvenirs, Arts and Crafts

Some designs that you can order from teepublic.


Slides of some old talks.

Promoting Open Science (UJAT, Tabasco, 2016).

Unconventional Plots in R (BCC, Berkeley, 2015)

Multiblock Dilemas (McGill University, Montreal, 2016)

Arc Diagrams in R (Bay Area R Users Group, 2014).

Thoughts on developing stats software in academia (LMA Agrocampus, Rennes, 2013).


Rtist: weird but beautiful random paintings.

Got Plot: tiny collection of polished charts in R.

Star Wars Arc Diagram: visualizing Star Wars movie scripts.

genbiovis: deprecated experiment for visualizing titles of genetics & biology papers

Mining twitter with R: deprecated experiment that keeps catching people's attention.


Some years ago I used to talk about data analysis, visualization, statistics, R and related stuff in my blog Data Analysis Visually EnfoRced (unfortunately, I haven't had the time to do that anymore).


Fundamentos Teoricos de Maniobras con Cuerdas

In a past life I used to be a rope techniques and rigging enthusiast (yes, seriously). Such was my fascination that I even wrote a book in Spanish about the theoretical fundamentals of Rope Techniques.


Once in a blue moon, my alter ego feels compelled to write—mostly in my mother tongue—what to me seems, feels and sounds like poetry-ish. I call them Poemario, a random collection of personal poems in Spanish.

Utility Poles

Photo album of an assortment of utility poles (transmission poles, telephone poles, power poles, etc).