lapply: How to Replace for loops in R to create Several Plots

  Рет қаралды 2,807

StatistikinDD

StatistikinDD

Күн бұрын

Пікірлер: 12
@StatisticsGlobe
@StatisticsGlobe 2 жыл бұрын
Thank you for the nice video Wolf! I'm using lapply a lot, but I have never used it to create multiple graphics. That's a great idea! Regards, Joachim
@StatistikinDD
@StatistikinDD 2 жыл бұрын
Thanks, Joachim! Lots of applications ...
@kristinwindsland9615
@kristinwindsland9615 2 жыл бұрын
I have just discovered lapply and this was VERY helpful. Thank you!
@baruqrodrigues
@baruqrodrigues 2 жыл бұрын
great video, congratulations.
@StatistikinDD
@StatistikinDD 2 жыл бұрын
Thank you! :-)
@KN-tx7sd
@KN-tx7sd 2 жыл бұрын
When I tried to run the r-codes I'm getting only one figure at a time. However, in your presentation, I can see 4-5 composite figures. Is there another command included in the function or loop to generate the composite figures you have shown in the video like ggarrange/ggpubr. Thank you, KN
@StatistikinDD
@StatistikinDD 2 жыл бұрын
Hi K N, I used a markdown-based format called xaringan (R package) for the presentation. In markdown, I used the chunk option fig.show = "hold" See here (or link in video description) : github.com/fjodor/functional-programming/blob/main/lapply.Rmd Details here: yihui.org/knitr/options/#plots Kind regards Wolf
@KN-tx7sd
@KN-tx7sd 2 жыл бұрын
can lapply be used to plot layers in a circular plot using packages like 'circlize'. If so can you kindly provide a link for the same?
@StatistikinDD
@StatistikinDD 2 жыл бұрын
Sorry, haven't used circlize yet.
@KN-tx7sd
@KN-tx7sd 2 жыл бұрын
@@StatistikinDD thanks for the prompt reply
@Black-ot4js
@Black-ot4js Жыл бұрын
Is there a way to use "lapply " with "openair" graphs?
@StatistikinDD
@StatistikinDD Жыл бұрын
Sure. lapply is not limited to Base R applications or in the type of functions you can use. You just need to pass the required arguments. If you need to pass several arguments at once, you may need to look into map2 / walk2 or pmap / pwalk from the purrr package.
How To Quickly Explore Data in R: DataExplorer
10:16
StatistikinDD
Рет қаралды 2,4 М.
What About "..." in R Functions? Magic and Danger
9:39
StatistikinDD
Рет қаралды 1,7 М.
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 11 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 31 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 53 МЛН
Tutorial - For Loops in R
6:12
Becoming a Data Scientist
Рет қаралды 42 М.
How to Use lapply, sapply and mapply in R
7:45
DataDaft
Рет қаралды 39 М.
Stable Diffusion in Code (AI Image Generation) - Computerphile
16:56
Computerphile
Рет қаралды 291 М.
How to Plot Statistical Group Comparisons in R: ggstatsplot
8:09
StatistikinDD
Рет қаралды 2,4 М.
How to Visualize Missing Data in R: naniar
9:27
StatistikinDD
Рет қаралды 2 М.
Introduction to Repeating Things in R: Looping Over Files
10:22
How to set up Automated Tests for Your R Package using testthat
17:51
What is a Monad? - Computerphile
21:50
Computerphile
Рет қаралды 602 М.
Iterating over Several Vectors at Once in R: MAGIC & purrr
12:46
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 11 МЛН