Getting Started: A Quick Introduction to R
Welcome to the world of R! If you’re new here, don’t worry — you don’t need to be a coding wizard to get things done. R is a programming language designed with data in mind, and with the right tools, it becomes surprisingly intuitive.
In this short bonus lesson, we’ll walk you through the essential building blocks of R: how to store values in objects, use functions, and load packages. Just enough to help you feel at home before jumping into our data visualization course!
👩💻 Executing R Code
You’ll usually use R inside an IDE (Integrated Development Environment), like RStudio, Positron or Visual Studio Code, which helps you write code, view data, and keep things organized.
While you'll likely use an IDE when working on your own projects, during the course you will write, modify, and run code in our sandboxes: A simple console where you can write R code and see the results immediately inside our browser 🧑💻
Try some basic operations below:
Loading...
You can write any R code in the left panel (the console) and click Run Code to see the results in the right panel.
The Reset button will restore the initial example code.
Lines starting with #
are comments. They're not executed — you can use them to temporarily disable code lines but also important to explain your code. Get into the habit of writing clear comments as they'll save time later when revisiting your own code!
Now that you’ve seen R in action, let’s take a step back.
Oh no! 😱
It seems like you haven’t enrolled in the course yet!
Join many other students today and become the ggplot2 expert your company needs!
Or Login