How to Use geom_smooth in R

An image that shows a ggplot2 scatterplot with a smooth trend line created with geom smooth.

This tutorial will show you how to use the geom_smooth function in R. It explains what geom_smooth does, explains the syntax, and shows step-by-step examples of how to use this function. If you need something specific, you can click on any of the following links. These links will take you directly to the appropriate place … Read more

Why R is My Favorite Language for “First Time” Data Scientists

Probably the most common question I get from new data science students is, “Which language should I learn … R or Python?” This is a somewhat complex question to answer, because it depends on who you are and what your goals are. Having said that, I do have a preference for first time data scientists. … Read more

R data analysis, covid19: finding successful countries

A small multiple chart of covid19 data, showing line charts of different countries, where the line is colored red/yellow/green according to the success in reducing new covid19 cases.

In this blog post, we’ll create a data visualization to analyze covid19 data and visualize successful vs. unsuccessful countries. You’ll see exactly what I mean by that in a minute. Our covid19 analysis series: a quick review This tutorial is actually part of a series of tutorials that show how to analyze data with R. … Read more