Donut Chart in R Tutorial: US Causes of Death 2019 (R Graph Gallery)

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • In this video I show you how donut charts can be created in R with ggplot().
    I will be using the geom_rect() and coord_polar() function in combination with ggplot().
    In the end I use this to visualize the causes of death for the US in 2019.
    ⏱ Time Stamps ⌚
    0:00 - Intro
    1:00 - Basic bar chart with geom_rect()
    3:35 - Circular barchart with coord_polar()
    4:08 - Adding text with geom_label()
    5:45 - Change color with scale_fill_brewer()
    6:35 - US Causes of death in the year 2019
    External Links:
    Check out the source for the R code on the R-Gallery:
    www.r-graph-gallery.com/dough...
    Background Music:
    • PARASITE EVE 2 SOUNDTR...

Комментарии • 7

  • @qwerty3465
    @qwerty3465 3 года назад +4

    First!
    Good luck for the challenge.

  • @ismailsani3382
    @ismailsani3382 4 месяца назад

    Any video on regional climate data download, analysis and prediction in R please. others who have may help please, many thanks

  • @successfulvictorypublisher6090
    @successfulvictorypublisher6090 2 года назад

    Thanks for this excellent video -- including your previous Euro 2020 (2021...) coverage. You are THE expert -- R Graph expert, I mean.
    Please churn out many more videos with recent events' Data Sets and plenty of differing Graph and Chart representations, if time permits. It will be a real boon to one and many.
    By way of a query, are there in-built 'arrow pointers' functions that one can incorporate onto the 'Doughnut' charts (or others) instead of the currently available rectangular boxes -- e.g. we have a smaller doughnut chart and use arrows RADIALLY? If there are many variables, the rectangular ones might seem to increasingly choke the available space ala space constraints
    Keep up the great work!
    Deeply appreciated! Thank you so very much Sir!

    • @TheDataDigest
      @TheDataDigest  2 года назад +1

      Thank you for the kind words. Such comments motivate me to get back to weekly uploads. Also interesting to learn the word "Edupreneur" :). Regarding your question. I saw people using geom_curve() and geom_arrow() for annotations that are a bit more flexible. After the R graph gallery series I plan to do a specific ggplot2 series were all these issues will be covered in great detail.

  • @WahranRai
    @WahranRai 2 года назад +2

    1:13 Why loading ggplot2 : it is already included in tidyverse package ?!

    • @TheDataDigest
      @TheDataDigest  2 года назад

      You are correct. I just wanted to make it clear that the ggplot2 package is necessary (in case users don't use the tidyverse in the file).

  • @ismailsani3382
    @ismailsani3382 4 месяца назад +1

    you are second to non. permit me to say you are the R