This short R tutorial explains how to simply create a histogram with ggplot2 in RStudio. The video shows step by step the functionality of the geom_histogram() function with a color scale, the number of bins, and positioning (not overlaid and overlaid (identity)). Also, how to add a plot title and the x- and y-axis label is shown as well as adding a legend to the histogram.
Create a histogram with ggplot2 in R (4 minutes)
Теги
RStudioR ProgramingProgramingR and RStudioR & RStudiodata analysisR languageR syntaxHow to RHow to code with RHow to code in RStudioR basicsR basic trickstipps in RR tutorialshort R tutorialstart with Rtutorial to learn Rlearn Rggplotggplot2package ggplot2ggplot2 in Rggtitlexlabylabplotting datadata visualisationhistogramhistgeom_histogrambinsposition identitylegend.positioncolor in histogramoverlaid histogram