Using the the ggplot2 R package to create a boxplot with individual data points overlayed (CC091)

  Рет қаралды 17,366

Riffomonas Project

Riffomonas Project

Күн бұрын

Пікірлер: 29
@Riffomonas
@Riffomonas 3 жыл бұрын
What do you think of adding a boxplot to a jitter plot without including the whiskers?
@TheSandrao89
@TheSandrao89 Жыл бұрын
Absolutely love your videos! Keep up the great work
@mocabeentrill
@mocabeentrill Жыл бұрын
Grade A, Top shelf stuff!
@KN-tx7sd
@KN-tx7sd 3 жыл бұрын
Hi Pat, is it possible to pin the number as you have shown for the x-axis labels for the Titles and subtitles, and captions. Thank you
@Riffomonas
@Riffomonas 3 жыл бұрын
You can do that with the glue function as well
@KN-tx7sd
@KN-tx7sd 3 жыл бұрын
Hi Pat, is it possible to reduce the space between the two x-labels so the plots are near to each other.
@Riffomonas
@Riffomonas 3 жыл бұрын
Try changing the width of the figure in ggsave
@drjzee
@drjzee 3 жыл бұрын
I would have thought it was a 95% CI, so I learned something there.
@Riffomonas
@Riffomonas 3 жыл бұрын
HA! :) Glad to hear it
@조지수-b2q
@조지수-b2q 3 жыл бұрын
Hello!! can i get a sentence for drawing Boxplot without min and max? just a box without a line! I know you explained it but English is not my first language so it's kind of hard to understand the whole thing...
@Riffomonas
@Riffomonas 3 жыл бұрын
Hi there! You can do it with stat_summary(fun.data=median_hilow, geom="crossbar"). Alternatively, you should be able to use geom_boxplot(coef=0, outlier.color = NA)
@cyrillejar1914
@cyrillejar1914 3 жыл бұрын
Really interesting !!! Many thanks ! I think I will use jitter plot with box plot for my next analyses. But I will keep the whiskers, without you miss the extreme values ... I'm not sure it is really important to explain the 1.5 times about whiskers, I think it is enough to say that above or below we consider the values as extreme. Thanks again, even if do not agree for whiskers I really appreciate your point, an I always learn new things !
@Riffomonas
@Riffomonas 3 жыл бұрын
I'd suggest that most people will want to know why you think something is "extreme" and so it's probably necessary to explain what the whiskers represent
@hassanhijazi4757
@hassanhijazi4757 2 жыл бұрын
Hi Pat, does the position of the jittered points change each time you run the code or itmust be fixed at each code-run?
@Riffomonas
@Riffomonas 2 жыл бұрын
It’s determined by the random number seed. You can do set.seed or (I think) geom_jjtter has an argument to set a seed
@hassanhijazi4757
@hassanhijazi4757 2 жыл бұрын
@@Riffomonas Exactly, thank you. I checked that you can provide the argument "position = position_jitter(seed = NULL) inside the geom_jitter() and it will do it.
@123peterjackson
@123peterjackson 13 күн бұрын
How would I go about creating multiple box plots for a time series with 13 weeks and 2 different groups
@Riffomonas
@Riffomonas 13 күн бұрын
I'd make it with a facet for each group
@The_Researcher_Girl_Aditi
@The_Researcher_Girl_Aditi 3 жыл бұрын
how to do Box and Whisker Plot in R?? Please Urgent 🙏😭
@Riffomonas
@Riffomonas 3 жыл бұрын
You’re in the right place! Check out this video and you’ll learn how
@erdenebilegnasantogtokh6705
@erdenebilegnasantogtokh6705 Жыл бұрын
How to fix some error, library("tidyverse") Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j = 3.4.0 is required In addition: Warning message: package ‘tidyverse’ was built under R version 4.1.3
@mdmominulislam2498
@mdmominulislam2498 2 жыл бұрын
is it possible to do it in excel.please make a video.combining jitter plot with box plot in excel.thanks
@Riffomonas
@Riffomonas 2 жыл бұрын
Thanks for watching! Unfortunately I don’t know how to use excel to make figures 😂 maybe this is a good chance to learn some R to improve the reproducibility of your code?
@valerierussell6867
@valerierussell6867 Жыл бұрын
Yeah, I thought the whisker was the entire range....
@saadalhumaid3959
@saadalhumaid3959 2 жыл бұрын
Master
@Riffomonas
@Riffomonas 2 жыл бұрын
Ha! Well I don't know about that but thanks for watching 🤓
@saadalhumaid3959
@saadalhumaid3959 2 жыл бұрын
@@Riffomonas dude u brilliantly not surprised u hold a PhD degree. Stuff u know in RStudio should raise ur chance in the authorships in the best international journals
@pingliu1310
@pingliu1310 3 жыл бұрын
I called it jitter plot. 😀
@Riffomonas
@Riffomonas 3 жыл бұрын
I think I'm slowly changing from strip chart to jitter plot 🤷‍♂️
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 54 МЛН
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН
One day.. 🙌
00:33
Celine Dept
Рет қаралды 77 МЛН
Create a boxplot using R programming with the ggplot package.
19:36
R Programming 101
Рет қаралды 55 М.
Boxplots in R with ggplot and geom_boxplot() [R- Graph Gallery Tutorial]
16:17
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 54 МЛН