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

single

bookChallenge: Bar Charts

Stryg for at vise menuen

Opgave

Stryg for at begynde at kode

Create a function to build a bar chart from categorical frequency data and customize its appearance using color and orientation options.

  • Use the categories parameter to set the names of the bars.
  • Use the counts parameter to set the heights or lengths of the bars.
  • Use the colors parameter to set the color of each bar.
  • Use the horizontal parameter to control whether the bars are vertical or horizontal.

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 6
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