Пікірлер
@pategaumais1
@pategaumais1 6 сағат бұрын
I like your version, thank you for sharing! The only thing I would maybe modify is the y axis: from 0 to 100, to emphasize that the treatment reduces fluorescence by ~40%. If we don't pay enough attention, the y axis from 60 to 100 may give the impression that treatment entirely suppresses fluorescence. An alternative would be to break the axis between ~10 and 50. Otherwise, beautiful data visualization, as always. Thank you!
@Riffomonas
@Riffomonas 5 сағат бұрын
I like your logic for making y start at zero - great point! Thanks for watching 🤓
@moviezone8130
@moviezone8130 9 сағат бұрын
Thanks for yet another wonderful video! But, a big but, a channel like this with a grate instructor like you should get views in thousands within hour. I highly suggest you start a structured lecture, may be you start about the programming aspect of R, then grow it by the day to its application on data analysis, visualization, data cleaning etc but in a structured way. Right now your videos are unstructured!
@Riffomonas
@Riffomonas 7 сағат бұрын
Thanks - but it has to stay interesting for me too! I teach intro stuff in workshops. These videos are intended for the type of folks who have taken a workshop and need something meaty to chew on to develop their skills further
@ga3acid220
@ga3acid220 12 сағат бұрын
Why is my "disease_stat" 5:10 not working? 🙏🏾
@Riffomonas
@Riffomonas 7 сағат бұрын
What about it isn't working? That's going into a case_when statement. Make sure you're using == and that you have all of your parentheses and comments in the right place in that mutate statement
@ga3acid220
@ga3acid220 5 сағат бұрын
Thanks for your response. I already have a solution by ChatGPT​@@Riffomonas
@johnnygoffla
@johnnygoffla Күн бұрын
Great video! I largely agree that whatever language you choose as a first one, it is going to be highly beneficial for learning another. However, I do think that it is more reasonable to learn python before the likes of R since it is much more rooted in common programming logic and has simple yet reminiscent syntax of more basic compiled languages. R is nearly fully based on concepts of vectorized operations , and i'm almost certain that its a bad idea to learn this before the concepts of common primitive datatypes. Either way, good look to all of ya'll that are at the beginning of your training in programming!
@Riffomonas
@Riffomonas Күн бұрын
Thanks for commenting! In my experience >90% of R users aren't really interested in programming as a classical CS person thinks of programming. They want to run some stats, calculate summary statistics, or make a plot. They could go their whole career without learning anything about object oriented programming. I think that difference in perspective is meaningful when thinking about whether someone will even need a second language.
@sven9r
@sven9r 2 күн бұрын
GO WOLVERINES! (Just cheering for you :P)
@Riffomonas
@Riffomonas 2 күн бұрын
〽️
@PhilippusCesena
@PhilippusCesena 3 күн бұрын
As always very useful video, thanks!
@Riffomonas
@Riffomonas 3 күн бұрын
My pleasure! 🤓
@marc_CFA_applied_econ
@marc_CFA_applied_econ 5 күн бұрын
Thanks for continuing to provide this awesome public service. How you make time is beyond me. I learn something from every video: will be rounding my line ends from now on!
@Riffomonas
@Riffomonas 5 күн бұрын
Ha! It's the little things that make the difference 🤓
@whalerman2689
@whalerman2689 6 күн бұрын
Tnank you! Very usefull as always!
@Riffomonas
@Riffomonas 6 күн бұрын
My pleasure - thanks for watching! 🤓
@osaabd390
@osaabd390 6 күн бұрын
Thank you Pat for the inspiring videos. I learned a lot today!
@Riffomonas
@Riffomonas 6 күн бұрын
Wonderful - thanks for watching! 🤓
@omerali5122
@omerali5122 6 күн бұрын
Hey prof can you make avdio about gghighlight. Your vidos are excellent.
@Riffomonas
@Riffomonas 6 күн бұрын
Thanks for the suggestion! Do you know of a published example of it (or something like it) being used with a dataset?
@EmouAcademy
@EmouAcademy 6 күн бұрын
Hi Pat, Thank you. R library is not loading from the created environment. Is there any stage I might skipped or something is missing?
@Riffomonas
@Riffomonas 6 күн бұрын
Are you sure you're in the environment before starting R?
@EmouAcademy
@EmouAcademy 6 күн бұрын
@ yes, i am sure.
@Riffomonas
@Riffomonas 6 күн бұрын
@@EmouAcademy Sorry, it could be a lot of things and this interface is not the best for diagnosing problems. If you want to email me screenshots of wwhat's going on I can take a look - [email protected]
@PeperazziTube
@PeperazziTube 7 күн бұрын
In case you need to do a more automatic CPI adjustment. With the quantmod package, you can scrape chained-inflation straight from the source. With a bit of manipulation, it's easy to convert a large array of numbers into the inflation-corrected value. cpi <- quantmod::getSymbols("CPIAUCSL", src = "FRED", auto.assign = FALSE)
@Riffomonas
@Riffomonas 7 сағат бұрын
Very cool - thanks! I figured there was something but just needed a one off for this video
@djangoworldwide7925
@djangoworldwide7925 7 күн бұрын
9:00 Have you heard of reshape2::melt() ? It's my new go-to when I need a quick pivot_longer and usually does the trick really well. Pivoting (long or wide) is still my Achilles when it comes to getting it right the first time (or second...). Design wise, I would edit the subtitle and color the relevant sections with the matching colors. Also a good opportunity to try the new marquee package that allows you to incorporate markdown straight in ggplot
@Riffomonas
@Riffomonas 7 сағат бұрын
Thanks - I'll have to check out marquee!
@PhilippusCesena
@PhilippusCesena 7 күн бұрын
Great video! Thank you!
@Riffomonas
@Riffomonas 7 күн бұрын
My pleasure - thanks for continuing to watch! 🤓
@eric13hill
@eric13hill 7 күн бұрын
I liked the tips about using different fonts.
@Riffomonas
@Riffomonas 7 күн бұрын
Awesome - it's a nice way to add some personality to a figure 🤓
@difflocktwo
@difflocktwo 7 күн бұрын
Some of the best R / data viz info out there. On top of the top-quality information and teaching style, the audio/video are super good too.
@Riffomonas
@Riffomonas 7 күн бұрын
Thanks! I'm glad you've been watching 🤓
@MosopeAbanikannda
@MosopeAbanikannda 9 күн бұрын
Thank you for your video! Do you know a reliable way to check grammar in real time when writing on rmarkdown? I also find that when I knit to tex or word, the formatting turns out weird.
@Riffomonas
@Riffomonas 9 күн бұрын
I often write rmarkdown using vscode and vscode has plugins that will do grammar checking for you. For knit'ing to word, you will need a reference file that has the formatting built into it already. It's pretty painful. I usually do everything with PDFs and if I need a word version, I take what it generates and reformat the final draft to look right
@MosopeAbanikannda
@MosopeAbanikannda 9 күн бұрын
@Riffomonas Thank you for your suggestion. I'll try using vscode.
@MosopeAbanikannda
@MosopeAbanikannda 7 күн бұрын
@@Riffomonas Thank you for the suggestion, I was able to use vscode with LTex, I was also able to use a Zotero extension (Zotex) to manage my citations and bibliography. Thank you once again!
@wolfgangr.9593
@wolfgangr.9593 9 күн бұрын
Great work, but I'm not a huge fan of this heavy use of annotations. They won't change when your data changes. Instead you could use something like: ... scale_y_continuous(labels = scales::label_currency())+ coord_cartesian(ylim = c(0, NA), xlim = c(-0.6, 6.6), clip = "off", expand = FALSE) + ... theme( ... axis.text.y = element_text(hjust = 0, vjust = -0.3, size = 13, face = "bold", margin = margin(r = -58)), ... ) The definition of margin is not ideal (it's hardcoded and might need adaption) but I think it's overall a more "robust" solution
@Riffomonas
@Riffomonas 9 күн бұрын
Thanks for your code! It's great to see people riffing off of what I'm sharing 🤓. To get yours to match mine, I had to adjust the margin (mainly the left) since the gridlines were going all the way to the left edge of the figure... axis.text.y = element_text(hjust = 0, vjust = -0.3, size = 13, face = "bold", margin = margin(l = 10, r = -40)), I think I still prefer the annotate() approach since the meaning of the x and y positions are a bit more clear than the units on the margin and the vjust. For what it's worth, I tried adding fake 2024 data and I don't think it would take much/any fiddling to get it to look right. Thanks again for sharing - there's certainly multiple ways to do this
@moviezone8130
@moviezone8130 9 күн бұрын
Thanks again for yet another video which rises the bar high! I gained a lot of valuable lessons. I do have one suggestion to you, would you please start a lesson on the programming aspect of R programming from basics to advanced level in a structured way by doing you your channel will stand out from the rest of the crowd sir. By the way I am following you from Ethiopia, Addis Ababa.
@Riffomonas
@Riffomonas 9 күн бұрын
Thanks for watching and your suggestion! My struggle with covering basic programming concepts is that it's hard to create a story out of the lesson that I think is interesting enough. I'll keep it in mind though for the future.
@alenesia_
@alenesia_ 10 күн бұрын
I loved your presentation! Your fresh perspective on data visualization is really inspiring. Thanks for sharing your knowledge!
@Riffomonas
@Riffomonas 10 күн бұрын
My pleasure! 🤓
@yeokcmark
@yeokcmark 10 күн бұрын
You dont need "pretty. You can format as currency at geom_text geom_text(aes(label = scales::label_currency()(earnings)), y = 2000, angle = 90, hjust = 0, color = "white", size = 14, size.unit = "pt")
@Riffomonas
@Riffomonas 10 күн бұрын
Sure, but I don't really like manipulating variables in aes() since I think it hinders the readability. Thanks for watching!
@Sabin625
@Sabin625 10 күн бұрын
So good, love to see you work. For me a lot of job is now being done by Calude. I think it is ruining my skills in terms of thinking how to do it.
@Riffomonas
@Riffomonas 10 күн бұрын
There's only one AI that I encourage people to use: *ACTUAL* intelligence 🤓
@belantaribrahim850
@belantaribrahim850 10 күн бұрын
Great video as always 💯...thank you. These past days I have been diving into diversity in ecology (alpha, beta, gamma, Shannon, Simpson...), since I don't have a lot of experience in statistics with ecological data I am learning as I go, and when it comes to R I always turn to your videos 😅. I found your previous code club videos about dissimilarity matrices, NMDS, Mantel...very helpful of course, but in my research I came across Hill numbers and "hill.div" package...it would be so great if you make some videos about the package and the Hill numbers. Thank you again...always keep making these videos🤗🤗
@Riffomonas
@Riffomonas 10 күн бұрын
My pleasure - thanks for watching! I'll add hill numbers to the list of things to cover in the future
@PhilippusCesena
@PhilippusCesena 10 күн бұрын
thank you!!
@Riffomonas
@Riffomonas 10 күн бұрын
My pleasure - thanks for tuning in! 🤓
@luckybarrel7829
@luckybarrel7829 11 күн бұрын
In your text editor take your cursor on a function and then press F1 to open the help for that function, if you want to know a shortcut instead of typing ?function in the console
@Riffomonas
@Riffomonas 11 күн бұрын
You're starting to detect that I'm not a native Rstudio user :) I do a lot in VSCode on a cluster and so many of the Rstudio-specific shortcuts get lost on me
@luckybarrel7829
@luckybarrel7829 11 күн бұрын
There is an inbuilt function for sd. It's called mean_sdl. The default is mean +/- 2SD, so you need to pass on arguments to get mean +/- 1SD. So the function will look like: stat_summary(fun.data = "mean_sdl", fun.args = list(mult = 1), geom = "errorbar", width = 0.4) That list(mult = 1) is the multiples of SD that should be computed, and by default it is kept to 2 since looking at overlap of errorbars plotted with 2SD gives a good indication whether a result is significantly different or not by a t-test.
@123peterjackson
@123peterjackson 12 күн бұрын
Lets say I have a 13 week trial split into a one-week run in phase and a 6 week supplement phase and a 6 week post supplement phase, is it possible to add additional titles on the x axis to indicate this
@Riffomonas
@Riffomonas 12 күн бұрын
I would probably make three facets - one row, three columns. Then I would put the facet title on the bottom outside the x-axis text. I've done this with moving them to the y-axis for a one column, three row figure, but you could surely do it with what you describe
@123peterjackson
@123peterjackson 12 күн бұрын
@Riffomonas sorted it. Between yours and a couple of other videos 💪🏼 thanks for the reply
@123peterjackson
@123peterjackson 12 күн бұрын
How would I go about creating multiple box plots for a time series with 13 weeks and 2 different groups
@Riffomonas
@Riffomonas 12 күн бұрын
I'd make it with a facet for each group
12 күн бұрын
Really interesting seeing you explore {grid} with the pattern function. Great video!
@Riffomonas
@Riffomonas 12 күн бұрын
Thanks for watching! 🤓
@luckybarrel7829
@luckybarrel7829 12 күн бұрын
Thank you! I could marry you if I could. This saves me so much time. All the most commonly needed stuff in one place!
@Riffomonas
@Riffomonas 12 күн бұрын
HAH! Sorry, I'm spoken for 🤪
@spacelem
@spacelem 12 күн бұрын
Thank you for this, I've really been enjoying this series, and have been recommending it to people in my group! ggplot2 is huge, with so many bonus packages to extend it. If you were looking for more things to show off, something I'd be really interest to see is some GIS (e.g. something like disease prevalence in different regions of the country). Also gganimate for including in a presentation (e.g. a movie showing changes in regional prevalence over time... can you tell I'm an epidemiologist?).
@djangoworldwide7925
@djangoworldwide7925 13 күн бұрын
Most eleborative and advanced, yet simple enough, ggplot channel on youtuve. Olus, the series on the precipitation data and the package development, including sll the benchmarking - pure gold. Thanks Pat.
@Riffomonas
@Riffomonas 13 күн бұрын
Thanks! 🤓
@derterle
@derterle 13 күн бұрын
Great video. So much better! I have some additional suggestions for your plot. You can format log axes much easier using the scales package (part of tidyverse): scale_y_log10( limits = c(1e-9, 1), breaks = scales::breaks_log(n = 9), labels = scales::label_log()) I also like to add some log scale ticks so that the viewer can quickly grasp the transformed scale using another ggplot function: annotation_logticks(sides = "l")
@Riffomonas
@Riffomonas 13 күн бұрын
Thanks! I'm new to {scales} and will definitely be checking out it's ability to work with log scales. I'll be revisiting log scales for the videos I'll be doing in a few of weeks
@eric13hill
@eric13hill 13 күн бұрын
I've watched so many of your videos that I often use "dodgerblue" too. Also, it must have taken a long time to edit your video to keep moving the view of your face from side to side to allow us to see the relevant part of your code. All of that extra work makes your videos even nicer to watch. What I'm saying is THANKS for all of your service to us.
@Riffomonas
@Riffomonas 13 күн бұрын
Thanks so much! It's a lot of fun for me to make these and forces me to learn and keep developing my own R skills
@luckybarrel7829
@luckybarrel7829 12 күн бұрын
I love all the dodgerblues and the firebricks
@hassanhijazi4757
@hassanhijazi4757 13 күн бұрын
Thanks Pat very informative as usual. I would like to know you do for the following: Output format (png? tiff? pdf? svg?) to add to your articles. What about the dimension of the figure? So it fit into the dimesion of A4 document. Do you exported larger and then resized it? Finally, what about the font size. What minimum you never go below to keep it readable when the article is printed out? Thanks a lot
@Riffomonas
@Riffomonas 13 күн бұрын
For papers the journals I submit to require TIFF. I use ggsave to do this to a specific image size that complies with what they require. An example of these specifications can be seen here: journals.asm.org/writing-your-paper#figures-tables
@iot3136
@iot3136 14 күн бұрын
Hey Prof. Thanks for all the content you have been posting. Especially the newsletter. There are loads of information already you have provided, however I would like to request a new video since I have to actively work on data analysis Omics project. Tbh I am overwhelmed - my question to you is do you/ you students keep remembering all these syntax? Basically I can do stuff mainly googling. Given this new project comes, now I am overwhelmed I’m not smart enough to code. Could you please advise how to navigate in this space. How do you advise me if I was a student of you… thanks 🙏
@Riffomonas
@Riffomonas 14 күн бұрын
My pleasure! Honestly, it's through practices. Make a lot of plots. Don't just make the plots that end up in a paper or talk. Try to recreate other figures you find interesting. You have to put in the time making the plots to remember the syntax. Beyond that there is a lot of googling and learning how to learn
@DM-py7pj
@DM-py7pj 15 күн бұрын
🤯🤓
@Riffomonas
@Riffomonas 15 күн бұрын
That first emoji describes how my head felt for a day or two after recording this video 🤣
@djangoworldwide7925
@djangoworldwide7925 14 күн бұрын
Agree. Damn
@kkanden
@kkanden 15 күн бұрын
it's interesting to see how adding something as simple as stripes to a plot can be so cumbersome! great video as always! i've already incorporated a lot of the things you show in your videos into my own plots i make for my lab classes, especially ggtext :D
@Riffomonas
@Riffomonas 15 күн бұрын
Fantastic - yeah, I've heard it said (and repeated it myself) that if something is hard to do in ggplot2, you probably should think twice about doing it 🤓
@ahmed007Jaber
@ahmed007Jaber 15 күн бұрын
This is excellent Patrick.thank you so much for sharing
@Riffomonas
@Riffomonas 15 күн бұрын
My pleasure! Thanks for watching 🤓
@ahmed007Jaber
@ahmed007Jaber 14 күн бұрын
@@Riffomonas was wondering, Pat, if we could export an application from R that is portable with no or with installation required but it is self contained so that it can be run on any computer without requiring R installation ever had the expereince with such a thing? this would be superuseful
@Riffomonas
@Riffomonas 13 күн бұрын
@@ahmed007Jaber The closest thing I've seen is WebR, which allows you to run R in the browser. I haven't had a chance to play with it yet, but it appears to be the latest cool thing in R - docs.r-wasm.org/webr/latest/
@zgl9764
@zgl9764 16 күн бұрын
Great video, I really enjoy watching you code!
@Riffomonas
@Riffomonas 16 күн бұрын
Glad to hear it! 🤓
@zgl9764
@zgl9764 16 күн бұрын
Great video, I really enjoy watching you code!
@Riffomonas
@Riffomonas 16 күн бұрын
My pleasure - thanks for watching!