Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Histograms | Core Visualization Techniques in R
Essential R Data Visualization for Beginners
Sektion 1. Kapitel 8
single

single

bookChallenge: Histograms

Stryg for at vise menuen

Opgave

Stryg for at begynde at kode

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_vec vector using the hist function.
  • Set the number of bins in the histogram by using the breaks argument with the bins parameter.
  • Set the color of the histogram bars using the col argument with the color parameter.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 8
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt