Avsnitt 1. Kapitel 8
single
Challenge: Histograms
Svep för att visa menyn
Uppgift
Svep för att börja koda
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 8
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal