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

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 nice package that can do the job.
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 question on Stackoverflow. After experimenting around, I decided to blog about my experience of changing the spatial resolution of GeoTIFF rasters.
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 file at a time. Hence, new R programmers often read multiple files successively and combine the data afterward.
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 the best one. It all depends on what you are trying to achieve. Websites like the projection wizard website offer a playground to experiment with different projections and how they look like depending on where you are looking at on the globe.
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 image that is provided within the stars package. Each pixel has a resolution of 30 meters.
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