Course

# How to Make a Histogram in Base R: 6 Steps With Examples

Learn how to create a histogram with basic R using the hist() function. In 6 simple steps (with examples) you can make a basic R histogram for exploratory analysis.

Updated Feb 2023 · 10 min read

## Your Path to Mastering R

Start from scratch and build core R skills for data science.

R Courses

4 hr

2.7M

Course

### Intermediate R

6 hr

600.1K

Course

### Exploratory Data Analysis in R

4 hr

99.4K

See More

RelatedSee MoreSee More

tutorial

### How to Make a ggplot2 Histogram in R

Learn how to make a ggplot2 histogram in R. Make histograms in R based on the grammar of graphics.

Kevin Babitz

15 min

tutorial

### Box Plot in R Tutorial

Learn about box plots in R, including what they are, when you should use them, how to implement them, and how they differ from histograms.

DataCamp Team

4 min

tutorial

### How to Create a Histogram with Plotly

Learn how to implement histograms in Python using the Plotly data visualization library.

Kurtis Pykes

12 min

tutorial

### R Formula Tutorial

Discover the R formula and how you can use it in modeling- and graphical functions of well-known packages such as stats, and ggplot2.

Karlijn Willems

33 min

tutorial

### 15 Questions All R Users Have About Plots

There are different types of R plots, ranging from the basic graph types to complex types of graphs. Here we discover how to create these.

Karlijn Willems

39 min

tutorial

### Bivariate Distribution Heatmaps in R

Learn how to visually show the relationship between two features, how they interact with each other, and where data points are concentrated.

Carlos Zelada

6 min