Section 1. Chapter 8
single
Challenge: Histograms
Swipe to show menu
Task
Swipe to start coding
Practice using histograms to visualize distributions in R. You will generate a histogram for a numeric vector and customize its appearance.
- Create a histogram of the
data_vecvector using thehistfunction. - Set the number of bins in the histogram by using the
breaksargument with thebinsparameter. - Set the color of the histogram bars using the
colargument with thecolorparameter.
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 8
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat