Introduction to Chart Functions in R

Learn the functionalities of chart functions and how to configure them.

Data visualization has numerous benefits, such as identifying patterns and trends that may not be apparent through tabular data. It also helps to make complex data easier to understand and communicate to others, which ultimately leads to faster and more informed decision-making. To reap these benefits, it’s important to learn data visualization in a tool like R. With tools such as ggplot2, R provides a wide range of options for creating high-quality data visualizations. By learning data visualization in R, we can enhance our skills as data analysts and increase our value in the job market.

Built-in functions

The default function for visualization in R is plot(). It is a versatile function that allows for the creation of various types of charts.

With the built-in functions in R, we can create:

  • Line charts and scatterplots with plot()
  • Pie charts with pie()
  • Bar charts with barplot()
  • Histograms with hist()
  • Boxplots with boxplot()

Note: We will use a simple chart to show the configuration options that aren’t chart-specific in this lesson.

Get hands-on with 1400+ tech skills courses.