In this case, you stay in the same tab and you click on “Install”. Alternatively, it could be that you need to install the package. Check That You Have ggplot2 installedįirst, go to the tab “packages” in RStudio, an IDE to work with R efficiently, search for ggplot2 and mark the checkbox. Want to learn more? Discover the DataCamp tutorials. This post will focus on making a Histogram With ggplot2. You can also make a histogram with ggplot2, “a plotting system for R, based on the grammar of graphics”. In our previous post you learned how to make histograms with the hist() function.