Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Bar Charts | Core Visualization Techniques in R
/
Essential R Data Visualization for Beginners
Section 1. Chapitre 6
single

single

bookChallenge: Bar Charts

Glissez pour afficher le menu

Tâche

Glissez pour commencer à coder

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt