ggplot2tor
ggplot2tor
  • Видео 7
  • Просмотров 24 947

Видео

How to automatically load an APA7 theme for your plots in ggplot2
Просмотров 1,2 тыс.2 года назад
You can find the article and the code from this video here: ggplot2tor.com/tutorials/apa_theme_rprofile
Quick tips: Display standard errors in ggplot2
Просмотров 2642 года назад
Find the cheat sheet of this video here: ggplot2tor.com/cheatsheets
Quick tip: How to add a border to geom_point in ggplot2
Просмотров 1,5 тыс.2 года назад
Points in geom_point come in various shapes. To add a border to points you need to use the right shapes. Find the cheat sheet of this video here: ggplot2tor.com/cheatsheets
Quick tip: Remove space underneath a histogram with the expand argument
Просмотров 2,5 тыс.2 года назад
ggplot2 adds a little space at the endpoints of the scales. This leads to some space between the beginning of the histogram and the x-axis. To remove this space you can use the expand argument. To learn more about ggplot2 visit my course ggplot2fundamentals: ggplot2tor.com/courses/ggplot2fundamentals
ggplot2 - Dodging bar charts with position_dodge()
Просмотров 1,8 тыс.2 года назад
In this video from my course ggplot2 fundamentals (ggplot2tor.com/courses/ggplot2fundamentals) I explain how the position_dodge() function works to dodge bars in bar charts. You can find the cheat sheet for this video here: github.com/ch-bu/ggplot2-fundamentals/blob/main/cheatsheets/03_ggplot2_fundamentals_cheatsheets_position_dodge.pdf
Make an apa-style bar graph in ggplot2
Просмотров 17 тыс.3 года назад
Find the code for this tutorial and the resources from the video here: ggplot2tor.com/tutorials/apa_bar_chart

Комментарии

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

    re: legend vertical spacing. The comments on substack mentioned a code update since your tutorial and to use this example (worked for me with .y): p + theme( legend.key.spacing.x = unit(1, "cm"), legend.key.spacing.y = unit(1, "cm") )

    • @paulb.982
      @paulb.982 4 месяца назад

      Where in the code should this be added?

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

    Is there any way to do this without using a mean or overall score i.e. keeping all the individual points to be able to do geom_jitter overlayed?

  • @thiseARThislife
    @thiseARThislife 11 месяцев назад

    Thank you so much for this. It was a huge help with building graphs for my master thesis.

  • @robertomariapellegrino9365
    @robertomariapellegrino9365 Год назад

    Hi, I tried to get the graph by pasting the commands but got the following error message: Error in get(as.character(FUN), mode = "function", envir = envir) : object 'draw_key_polygon3' of mode 'function' was not found Can anyone help me?

  • @julianmaurer9509
    @julianmaurer9509 Год назад

    Thanks, very helpful!

  • @thetoaster6413
    @thetoaster6413 Год назад

    Thank you so much for this! I love the fact that you went through the code line by line so that we can understand what's going on.

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

    Thank you for this suppose you got sales data. you got items sold, their quantity and value if I were in excel I would make a bar plot for the value, i.e. sales value, and volume/quantity of items sold as line chart combined with the previous but the latter would use a secondary axis now, I know such a thing is possible by mapping different data to different geoms but I am facing an issue visualising the quantity on a line chart any ideas? x-axis would have categorical labels and the other numeric

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

    goat

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

    Aboslute genius at play! I've been struggling for the past couple of hours with "scale_color_manual" and "scale_fill_manual", but this is so much parsimonious! You have my subscription good sir.

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

      One question though, if I wanted to add a legend because I have to different kind of points (one filled with blue, other filled with black), how could I add it? Thanks!

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

    very very good video. the first video i dont want quit!

  • @md.tajbibrahman9285
    @md.tajbibrahman9285 2 года назад

    Thank you sir, we want more like this..!!!

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

    Very nice! However, after adding the guides for the legend, the smaller legend keys disappeared and the sizes were reset. Is there a fix?

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

    code did not work for me :( object 'draw_key_polygon3' of mode 'function' was not found

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

      You should first run this code: draw_key_polygon3 <- function(data, params, size) { lwd <- min(data$size, min(size) / 4) grid::rectGrob( width = grid::unit(0.6, "npc"), height = grid::unit(0.6, "npc"), gp = grid::gpar( col = data$colour, fill = alpha(data$fill, data$alpha), lty = data$linetype, lwd = lwd * .pt, linejoin = "mitre" )) }

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

      @@pouyanalizade8753 Thank you so much!

    • @rijithraj1
      @rijithraj1 Год назад

      @@pouyanalizade8753 Hey that was awesome. Thank you so much :)

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

    Many thanks indeed for this tutorial. I would like to know how such an APA bar graph can be made edittable instead of being saved as unedittable png or jpeg picture. Thanks once again. Appreciation from Uganda

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

    Thanks

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

    thank you prof, it is very useful and very clear

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

    Thank you

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

    It was brilliant, perfect and very useful.

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

    code does not work here