Add any Plot to your {gt} table

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • You can spice up any {gt} table by adding small visual elements like plots to it. In this video, I show you how to combine the powers of {gt} and {ggplot} to make this work.
    You can find the full blog post (including all the code) at rfortherestofus.com/2023/10/g...
    #rprogramming #datavisualization #ggplot2
    If you want to receive emails to help you on your R journey, sign up for the R for the Rest of Us newsletter: rfortherestofus.com/newsletter

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

  • @khaledf3977
    @khaledf3977 Месяц назад

    Amazing thanks

  • @albertocabrera4297
    @albertocabrera4297 8 месяцев назад +4

    I have the latest edition of R for Data Science, GGPLOP2, Tidy Modeling with R and R Graphics Codebook. None of of those sources showcases the power of R as this 15 minutes workshop does. I just wish Albert Rapp would publish his own book. It would be the best practical book on the topic. My only advice is for Rapp to spend a little bit more time explaining the function() command and how it is linked with the fn = function() in gt().

    • @rfortherestofus
      @rfortherestofus  8 месяцев назад +1

      Hi Alberto, glad that you like the content. Albert also has some free e-books if you want to try them. Just head to his website. As for the function() command, it is just like any other function that you would create in R. You know, you would write something like my_fct

  • @muhammedhadedy4570
    @muhammedhadedy4570 8 месяцев назад +1

    Wow, you are a naturally talented person. Not only in writing codes, but also in teaching how to code.
    Please, keep up the great work.

    • @rfortherestofus
      @rfortherestofus  8 месяцев назад +1

      Wow, thank you for your kind words. I am a strong believer in growth instead of talent. My coding and teaching style is a result of lots of practice and not something that necessarily came natural to me. So I am really glad that you find my teaching style enjoyable :)

  • @haraldniederstatter4068
    @haraldniederstatter4068 5 месяцев назад

    Thanks for this outstanding video!!!

  • @charleydublin7304
    @charleydublin7304 3 месяца назад

    Excellent video, thank you - really powerful

  • @caty863
    @caty863 15 часов назад

    woow, this is neat. I will use this in my shiny apps.
    By the way, what is the advantage of using the *.by* parameter inside summarize() as opposed to using plain old *group_by()* ???

  • @niceday2015
    @niceday2015 8 месяцев назад

    Thank you very much that is wonderful

  • @albertocabrera4297
    @albertocabrera4297 8 месяцев назад

    Many thanks for the clear explanation linking the function() operator with the fn argument.

  • @ViweTyibilika
    @ViweTyibilika 8 месяцев назад

    Probably one of the most brilliant ideas, videos, and codes I've seen. Exceptionally clear and simple explanation of the code too. Definitely going to use this, especially for one of my data presentations with my supervisors (maybe look for any excuse to present some of my data as a table lol). Bravo and thanks for sharing

    • @rfortherestofus
      @rfortherestofus  8 месяцев назад

      Wow, thank you for your kind words :) Glad that you liked the way I structure my educational content.

  • @user-ql7ex5ri2r
    @user-ql7ex5ri2r 8 месяцев назад

    Big thanks.

  • @elcheff
    @elcheff 8 месяцев назад

    simple and brilliant

  • @CanDoSo_org
    @CanDoSo_org 6 месяцев назад

    Thanks. Could you please have a tutorial to plot with gt() in pdf format? I found many setting does not work in PDF.

  • @kaffeekanne
    @kaffeekanne 7 месяцев назад

    Thank you for the tutorial!
    I have a question regarding the export of a gt table as png.
    I just use gtsave(filename.png). The export works but a part of the table is just cut out in the png. I tried several options, but I am struggling to find a solution. Does anyone know how to solve that? I would be very grateful for that :))

  • @kelvinwong4804
    @kelvinwong4804 7 месяцев назад

    Hey, how can I use |> instead of %>% to pipe my script? I just tried using |> to pipe a dataframe in my R studio and it seems like my R studio cannot recognize the |>

    • @rfortherestofus
      @rfortherestofus  7 месяцев назад

      The native pipe was added in R 4.1. You probably have an earlier version of R. Just update R and you should be good to go!

    • @kelvinwong4804
      @kelvinwong4804 7 месяцев назад

      @@rfortherestofus Ok, thanks. Well, my company is still using the R version in 2021. Since it is a Rstudio workbench maintained by the IT department, I am not sure how much I can change or update it.

  • @ambhat3953
    @ambhat3953 3 месяца назад

    Is this possible in flextable package ?

    • @rfortherestofus
      @rfortherestofus  3 месяца назад

      Yes! See davidgohel.github.io/flextable/reference/plot_chunk.html

    • @ambhat3953
      @ambhat3953 3 месяца назад

      @@rfortherestofus Thnx