Resources
This carefully curated collection of resources will help you find packages and learning resources to help you on your R journey.
How to write your own R package and publish it on CRAN
A tutorial on how to write your own R package and publish it on CRAN
I ❤️ Leaflet: Using Plots as Markers
This blog post is part of the 'I love leaflet' series and provides tips and tricks for working with the leaflet R package. The post showcases how to create a map showing the results of the 2019 UK General election in Oxfordshire using the leaflet package.
Images as Facet Labels in ggplot2
In this tutorial by Dr. U, readers learn how to use ggplot2 in conjunction with ggtext and ggh4x to replace facet labels with images, specifically country flags. After loading the necessary packages, the tutorial explains how to retrieve and preprocess country codes and names using the jsonlite package. It guides through joining the country code data with the gapminder dataset and handling missing countries. Steps to download flag images and integrate them into ggplot2 faceting are then provided. The post details creating markdown with ggtext to display images within the plot, enhancing data visualization in R.
Interactive web-based data visualization with R, plotly, and shiny
This book provides insight and practical skills for creating interactive and dynamic web graphics for data analysis using R, plotly, and shiny.
Introduction to Geospatial Raster and Vector Data with R
This lesson covers how to open, work with, and plot vector and raster-format spatial data in R. It also includes topics such as working with spatial metadata, reprojecting spatial data, and working with raster time series data.
Introduction to mapping with {sf} & Co.
This blog post is an extended version of a presentation on mapping using the {sf} package and other related packages in R. It covers topics such as reading and exploring spatial data, manipulating attributes, geomatics processing, and creating static and interactive maps. The post also touches on the importance of projections and provides an example of projecting the map of Metropolitan France. The code for the different maps presented in the post is included.
Introduction to Open Data Science: GitHub
This chapter covers the topic of using GitHub for collaboration in open data science projects. It includes objectives and resources for learning about Git and GitHub, setting up Git & GitHub, creating and cloning repositories, syncing files between local and remote repositories, exploring remote GitHub, and collaborating with GitHub.
Iterate parameterised {xaringan} reports
Learn how to iterate parameterised xaringan reports using R. This tutorial demonstrates how to create a parameterised R Markdown template and iterate over parameter values to generate multiple reports with different data.
Iterated fact sheets with R Markdown
This article explains how to use R Markdown to create iterated fact sheets. It provides an overview of R Markdown, discusses the necessary ingredients for creating multiple fact sheets, and provides examples using the bad_drivers dataset.
Jazz up your ggplots!
This blog post from USGS VizLab outlines various methods to customize data visualizations using ggplot2 and its extension packages in R. It discusses enhancing plots with custom themes, fonts, annotations, effects, shapes, highlights, and animations. The authors provide comprehensive code examples for each technique, encouraging reproducibility and the use of ggplot2 ecosystem rather than external design software. The blog also features a guide on how to read it effectively, including executing data-wrangling steps, installing necessary packages, and incorporating showtext for fonts.