Here is a simple example of making that kind of plot with geom_histogram. I invented a simple data set named DF and if the steps to do that are confusing, don't worry about them. The use of ggplot() is all you need.
library(ggplot2)
#Invent data
set.seed(123)
DF <- data.frame(Name = paste("A", 1:100, sep = "_"),
Mass = rnorm(100, mean = 10, sd = 3.5))
head(DF)
#> Name Mass
#> 1 A_1 8.038335
#> 2 A_2 9.194379
#> 3 A_3 15.455479
#> 4 A_4 10.246779
#> 5 A_5 10.452507
#> 6 A_6 16.002727
ggplot(DF, aes(Mass)) +
geom_histogram(binwidth = 5, fill = "steelblue", color = "white")

Created on 2022-05-06 by the reprex package (v2.0.1)