Philippe Massicotte
  • Publications
  • Presentations
  • Workshops and teaching
  • About
Categories
All (12)
Data manipulation (1)
Geospatial (4)
Package discovery (1)
Puzzles (1)
R (12)
R tips (3)
ggplot2 (1)

Hanukkah of data 2022
R
Puzzles
If you are looking for some data science challenges, don’t look anymore, Hanukkah of Data is there for you. You can think of it as similar to Advent of Code but tailored toward…
Philippe Massicotte
Dec 28, 2022

Uptating Ubuntu packages crashed my renv R project
R
R tips
I am using renv quite a lot. Recently, I had to return to an older project that was using this package to manage package dependencies. When I tried to load tidyverse, I got the…
Philippe Massicotte
Aug 16, 2022

Removing white spaces around plots in R Markdown / Quarto
R
R tips
When plotting spatial data, such as a geographical map, maintaining a proper aspect ratio is important. Whereas knitr::plot_crop() works fine to crop a file, how can we do the same operation for a figure inside…
Philippe Massicotte
Aug 15, 2022

How to read AMSR2 sea ice data with terra
R
Geospatial
Today I was trying to read AMSR2 sea ice data. I was surprised to discover that the files do not include coordinates or projection information. Data…
Philippe Massicotte
Aug 11, 2022

Beautiful equations in R Markdown and Quarto
R
Package discovery
When writing dynamic documents in R (either R Markdown or Quarto), it can be useful to display model equations. I recently discovered equatiomatic, a very…
Philippe Massicotte
Aug 5, 2022

Changing spatial resolution of a raster with terra
R
Geospatial
Lately, I was working on a project and I needed to change the spatial resolution of a GeoTIFF to match that of another one. After looking around, I posted a…
Philippe Massicotte
Apr 28, 2022

Reading multiples CSV files using readr
R
Data manipulation
If you are beginning in R, chances are that you have used read.csv() to import CSV files into R. While this function works perfectly fine, it can only read one…
Philippe Massicotte
Feb 15, 2022

Choosing the right geographic projection with the crsuggest R package
R
Geospatial
When creating maps, choosing an appropriate geographical projection is often a difficult task (at least for me). There are plenty of projections to choose from, and none can be qualified as…
Philippe Massicotte
Nov 12, 2021

Extracting raster values using the stars R package
R
Geospatial
For a long time, I have been using the raster package to manipulate raster data in R. Slowly, I am trying to work my way out with the new stars package. In this post, I am exploring different ways to extract values from a raster at different geographic locations. For this exercise, I am using a Landsat 7…
Philippe Massicotte
Mar 6, 2021

How to change the language of dates in R
R
R tips
Recently, I had to make a ggplot2 graphic with data that contained dates. Let’s create some sample data with dates.
Philippe Massicotte
Jan 10, 2021

Removing borders around ggplot2 graphs
R
ggplot2
Recently I was participating in the 30DayMapChallenge where people were invited to make a map based on a different daily theme for one whole month.
Philippe Massicotte
Dec 20, 2019

Visualizing the decrease of Artic sea ice extent
R
It is well known that the Arctic sea ice extent is decreasing at an increasing pace. As stated by the National Snow & Ice Data Center:
Philippe Massicotte
Aug 23, 2019
No matching items