I usually don't comment on KZbin, but this video was a life saver. I don't understand why other people make tutorials so complicated, they should take a lesson from you.
@StatisticsofDOOM5 жыл бұрын
Thank you for the kind words!
@theleggylady8 жыл бұрын
Best R tutorial I've watched so far! Very clear and helpful. Thanks!
@aaronbenson63327 жыл бұрын
I've watched about 10 of your videos so far and they have been extremely helpful. Thanks so much!
@StatisticsofDOOM7 жыл бұрын
Glad to be of help!
@retrowatermelon6 жыл бұрын
this video SAVED me, thanks so much! you're the best!
@leandromagalhaes76499 жыл бұрын
Thank you so much for sharing, Erin. Very clear and practical guide!
@DrAmiry6 жыл бұрын
Thank you so much for this nice and helpful work. It helped me a lot!
@georgeheimpel13655 жыл бұрын
Great tutorial - I really appreciate the cleanup hack too!
@StatisticsofDOOM5 жыл бұрын
Yes! also you can try JUST + theme_bw() for your graph - it's very similar to what I wrote (I discovered this later).
@hanhnguyen845 жыл бұрын
Thank you so much! You are the best!
@hernanlarapadilla18788 жыл бұрын
Perfect explanation!!!!!
@StatisticsofDOOM8 жыл бұрын
Thanks!
@yvonnemadegwa9675 жыл бұрын
thank you
@satyajeetgupta90527 жыл бұрын
Thanks, it helped a lot.
@StatisticsofDOOM7 жыл бұрын
Glad it's helping! :)
@weizhang20769 жыл бұрын
really clear, I like it.
@merindalee5 жыл бұрын
Thank you! How would I have the error bars set to standard error?
@StatisticsofDOOM5 жыл бұрын
Check out this guide - www.cookbook-r.com/Graphs/Plotting_means_and_error_bars_(ggplot2)/ - little different than what I teach here, but will get you to SE instead of CI.
@samkonstan52546 жыл бұрын
Thanks so much for making this video, it really helped me out. One question: how do you use ggplot2 to enter a pre-calculated error bar? Thanks!
@StatisticsofDOOM6 жыл бұрын
Instead of stat_summary for the error bar, try using (where lower and upper are the numbers for the error bars, you might have to put them in a vector). geom_errorbar(aes(ymin=LOWER, ymax=UPPER, width=.2, position=position_dodge(.9))
@titanlxx6 жыл бұрын
Hi, Thank you so much for your video! it's been very helpful, I was wondering if you know any function that may help me to preserve the subgroups with zero counts in a grouped barplot?
@StatisticsofDOOM6 жыл бұрын
I think that if you leave them in as empty levels, it should work. Not 100% sure though.
@SrJaramango6 жыл бұрын
Awesome video! You helped me a lot! Only one question: how could I find the values of the errorbars? I tried with the "mean_cI_normal" command, but I wasn't able to find them :/. Thank u in advance!
@StatisticsofDOOM6 жыл бұрын
You are asking how you might find the confidence interval that ggplot is plotting? You can use that function - > data(mtcars) > mean_cl_normal(mtcars$mpg) y ymin ymax 1 20.09062 17.91768 22.26357 you fill in a column (might be filtered by group) to get them directly.
@SrJaramango6 жыл бұрын
Well, I refered to the interval itself, I mean, the substraction of the ymax minus the mean, but I created a function to do it. However, thank u! :D
@jasonmiller77898 жыл бұрын
Anyone know how to make the interaction bar graph if one of the variables is within subjects?
@StatisticsofDOOM8 жыл бұрын
Yes - you can watch one of our mixed or repeated measures ANOVA videos that covers how to make a bar graph with repeated measures specifically. You would need to melt the data first (using the reshape function) - similar to what happens in the line graph section. Then you can treat it like the double bar graph code.
@coksicak18 жыл бұрын
where can I download the ChickFlick dataset?
@StatisticsofDOOM8 жыл бұрын
It's from the Andy Field book - but I believe it's here: statstools.com/learn/graduate-statistics-in-r/ under graphs as well.
@alexisankrah37747 жыл бұрын
wow this is really good and im able to set up my multiple bars.... but whenever i try to add my error bars... r studio gives me this message "Warning message: Computation failed in `stat_summary()`: Hmisc package required for this function " ... HELP PLEASE Lol
@alexisankrah37747 жыл бұрын
OH WAIT ! I'm new to R... I just found out that I had to download the package ! THANKS ALOT ! This video is so great for R beginners !
@StatisticsofDOOM7 жыл бұрын
Glad it's helping! GGplot2 has changed a bit since I made this video and there's a newer one you can watch. kzbin.info/www/bejne/qp7CqZ2Pdpxol5o
@lewishun2937 жыл бұрын
Hi, Dr. B Thank you so much for this awesome video!! Is there a quicker way to download the ChickFlick.csv file from your website. I opened it and tried to copy it into excel, but all the data were just in one column. Thanks
@StatisticsofDOOM7 жыл бұрын
That's probably a mac to windows thing ... you can use text to columns in excel (under the data tab) to fix that problem. We just updated the website, so maybe try downloading again?
@rayray03136 жыл бұрын
Hi. I am making a plot with ggplot2, and I am noticing that the y axis column does not represent my actual data. For example, when looking at gaze duration (i.e., eye tracking research), it should read 500ms for one level in a variable, but it reads 250,000. Any thoughts?
@StatisticsofDOOM6 жыл бұрын
I had a similar problem recently when trying to overlay several groups data. I would suggest making the plot one piece at a time (like add each layer one run at a time) to see maybe where something is going wrong.
@dondacurator5 жыл бұрын
i dig your tutorial but every time I add the theme or cleanup,, the whole graph dissapear ...and I HATE STATS,,just throwing it out there
@StatisticsofDOOM4 жыл бұрын
Hmmm - that's odd. Instead just try adding + theme_bw() or theme_classic() to the plot to help clean it up. Check out ggthemr as well: www.shanelynn.ie/themes-and-colours-for-r-ggplots-with-ggthemr/
@xxblabla75xx6 жыл бұрын
Zoe Deschanel is that you?
@gmjakirullahnooruddin17348 жыл бұрын
Thank you very much for this nice video. I am doing with multiple variables. I got a warning message and did not get the plot. Can you please explain and give me solution of it. Thank you Warning message: Removed 5 rows containing missing values (geom_errorbar).
@StatisticsofDOOM8 жыл бұрын
That means that you have missing data, so it removed those data points to calculate the mean (sort of like na.rm = T in the mean calculation). I'm not sure why you didn't the graph ... usually you still will get the graph even when you get that error.
@kaleilw4 жыл бұрын
Necessary topic, but wish this was done by Marin Stats. Painful and disorganized.