Skip to content
KnowledgeCity

R Programming: Data Visualization Basics in R

Discover the art of data visualization with R
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Beginner Provider David Christensen  3 Lessons ·  26m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In these lessons, you’ll learn how to create effective and attractive visualizations in R using both base graphics and ggplot2. We’ll demonstrate how to create various types of plots including scatter plots, line plots, and bar charts. You’ll also explore different techniques for customizing and adding labels to your plots.

With ggplot2, you will learn how to chain grammar or graphics elements together using the + symbol and how to apply aesthetics to customize the appearance of your plots. You will also learn how to use common “geom” functions to create a wide range of different plots. Finally, you’ll discover how to use theme functions to customize the appearance of your plots and create professional-looking visualizations. By the end of these lessons, you will have the skills and knowledge you need to create effective and visually appealing data visualizations in R.

What You'll Learn

  • Create scatter plots, line plots, and bar charts in R using base graphics and ggplot2
  • Customize and add labels and titles to plots to make them more effective and informative
  • Chain grammar of graphics elements together in ggplot2 using the + symbol
  • Apply aesthetics to customize the appearance of your plots
  • Use common geom functions to create a wide range of different plots
  • Use theme functions, including theme_bw(), to create professional-looking visualizations

Key Takeaways

  • Effective and attractive visualizations in R can be created using both base graphics and ggplot2.
  • ggplot2 builds plots by chaining grammar of graphics elements together with the + symbol and applying aesthetics.
  • Common geom functions in ggplot2 let you create a wide range of different plot types.
  • Theme functions, such as theme_bw(), customize a plot's appearance to produce professional-looking results.
  • The course covers creating scatter plots, line plots, and bar charts, plus customizing and labeling them.

Frequently Asked Questions

What will I learn in this course?

You'll learn how to create effective and attractive visualizations in R using both base graphics and ggplot2, including scatter plots, line plots, and bar charts, and how to customize, label, and theme your plots to create professional-looking visualizations.

Which R tools does this course cover for data visualization?

It covers base graphics (R Base) and ggplot2, including using the + symbol to chain grammar of graphics elements, applying aesthetics, using common geom functions, and using theme functions such as theme_bw().

What lessons are included in this course?

The course includes three lessons: Plotting in Base R, Plotting With ggplot2, and Customizing Plots and Adding Labels and Titles.

What skills will I gain from this course?

You'll gain skills in data visualization, ggplot2, R (programming language), R base, statistical graphics, and visualization.

What types of plots will I be able to create?

You'll be able to create scatter plots, line plots, and bar charts, and use common geom functions in ggplot2 to create a wide range of different plots.