Skip to content

The R Language Built by Statisticians for Data Analysis

A quick visual overview of the origins of R, ggplot2 workflows, and community packages for data science.

YouTube · Peak · 25 August 2026 Watch on YouTube

0

Report / takedown request

Your report is sent to our team and reviewed.

Tried this idea? Show how yours turned out.

I made this

#rstats #datascience #rprogramming #statistics #ggplot2 #coding #datavisualization #manim #learncoding #dataanalytics

How to do it

What you need

  • ggplot2 package
  • a data frame with x and y columns
  • ggplot()
  • geom_point()
  • geom_smooth()

Step by step

  1. Load the ggplot2 library with library(ggplot2)
  2. Call ggplot() with your data frame and map x and y inside aes()
  3. Add geom_point() to draw the observations as points
  4. Add geom_smooth() to overlay a fitted trend line
  5. Run the code and read the plot that appears

Tips

  • Build the plot by layering geoms onto ggplot() with +, one line at a time
  • Map variables inside aes() and keep the geoms outside it
  • geom_smooth() alone gives the trend; with geom_point() first you see the raw data behind it

Written by Tagrazzi from the original's description and photo.

The title and summary are written by Tagrazzi; the video belongs to its creator and plays from YouTube.

Comments (0)

No comments yet. Be the first to comment.

Sign in to write a comment.