Generated by All in One SEO v4.9.10, this is an llms.txt file, used by LLMs to index the site. # Dr Lyndon Walker Statistics Blog & Online Courses ## Sitemaps - [XML Sitemap](https://drlyndonwalker.com/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [Blog](https://drlyndonwalker.com/blog/) - [Adding Corporate Colors to R Graphs](https://drlyndonwalker.com/adding-corporate-colors-to-r-graphs/) - Creating consistent visuals can elevate your brand, and customizing your ggplots with your corporate colors is a simple way to achieve that. The video and R code below will walk you through setting up your color palette and applying it to your plots. Together they provide an easy path to producing graphics that look polished - [What To Do If You Are Falsely Accused of Cheating with AI](https://drlyndonwalker.com/what-to-do-if-you-are-falsely-accused-of-cheating-with-ai/) - In the video and blog below I describe what to do if you are falsely accused of using AI tools like ChatGPT to cheat. This information is going to be really important for both students (both those who have been falsely accused and those that want to avoid it), and academics (so they can see - [Stranger Things Ratings Graph in R](https://drlyndonwalker.com/stranger-things-ratings-graph-in-r/) - In this YouTube video I explain how to use the code below to get the IMDB ratings for each episode of Stranger Things and produce this awesome looking graph. Big thanks to Ansgar Wolsing (bydata) who did the heavy lifting, producing the original code which I have adapted. The IMDB non-commercial datasets page detail what - [R in an Hour](https://drlyndonwalker.com/r-in-an-hour/) - R is a powerful free statistics language that I have used for 27 years. In this video I provide a getting started guide, from what to install, to how to run your first bits of code, where to find the best help resources, and where to go next in your learning journey. Links for the - [How to run EFA & CFA in R](https://drlyndonwalker.com/how-to-run-efa-cfa-in-r/) - Exploratory Factor Analysis (EFA) and Confirmatory Factor Analysis (CFA) are important techniques that are used extensively in psychometrics and the social sciences. Both EFA and CFA are crucial for understanding relationships between observed variables and underlying constructs. They aid in developing and validating measurement instruments and testing theories about the structure of psychological constructs. EFA - [SciSpace Discount Codes](https://drlyndonwalker.com/scispace-discount-codes/) - SciSpace (typeset.io) is a fantastic AI powered literature search and research tool. It can find and summarize research articles based on a research question and also has a copilot reading assistant, AI detector, citation generator and a paraphraser. I have the following exclusive discount codes for the site: 40% off with SciSpace annual premium with - [Barbie and Oppenheimer Graph Themes](https://drlyndonwalker.com/barbie-and-oppenheimer-graph-themes/) - Want to make your R graphs really stand out? The Theme Park graph themes (https://github.com/MatthewBJane/theme_park) give you a range of movie and TV theme sets, including the latest hit movies, Barbie and Oppenheimer. In the video and code below I show you how to add these themes to your ggplots. Subscribe to stay up to - [Adding Marginal Density Plots to a Graph in R](https://drlyndonwalker.com/adding-marginal-density-plots-to-a-graph-in-r/) - In this video I demonstrate how to add marginal density plots to your ggplot2 scatterplots in R using two different R packages - ggExtra and ggside. Using these packages I will show you how to add density curves, histograms, boxplots, and violin plots for the marginal distributions and how to divide them by different categories. - [How to make a Word Cloud in R](https://drlyndonwalker.com/how-to-make-a-word-cloud-in-r/) - In this video, I'll guide you through using the wordcloud2 package in R. Despite a few minor issues, it comes with a range of unique and practical features that you won't find in other packages. Throughout the tutorial, I'll showcase various visual options using the package's demo data. I will then teach you how to - [k-means Cluster Analysis in Excel using Python](https://drlyndonwalker.com/k-means-cluster-analysis-in-excel-using-python/) - One of the major limitations of Excel has always been that in order to do anything more than simple analysis you either needed add-ins (which varied a lot in quality) or to code things up in VBA (which was clunky and not what it was designed for. The addition of Python to Excel (currently for - [Analyzing Cricinfo Cricket Data with R](https://drlyndonwalker.com/analyzing-cricinfo-cricket-data-with-r/) - In the following video I demonstrate how to use the cricketdata package for R to download different types of cricket data from espncricinfo and produce some visualizations. library(cricketdata) library(tidyverse) # fetch_cricinfo(): Fetch team data on international cricket matches provided by ESPNCricinfo. auswt20 - [How to Import Excel Sheets to R](https://drlyndonwalker.com/how-to-import-excel-sheets-to-r/) - There are a number of ways to import Excel sheets into R. My favourite is tidyverse package readxl. In this video I demonstrate a number of tips and tricks to use this package more effectively. Subscribe to stay up to date on my latest videos, courses, and content # part of the tidyverse package but - [Summary Data Viz with gtExtras](https://drlyndonwalker.com/summary-data-viz-with-gtextras/) - The gtExtra package is an extension of the gt package and has a whole lot of really useful functions for creating summary tables and data visualizations. The code and video below run through a number of examples but one of my favourite ones is gt_plt_summary() which will summarize all of the variables in a dataset. - [Subset your data in R with the slice function](https://drlyndonwalker.com/subset-your-data-in-r-with-the-slice-function/) - The slice functions from the Tidyverse are a handy set of R functions for taking subsets of your data (like filter but for maximums, minimums, random samples, etc). In this video I demonstrate a number of ways to use slice functions including slice_max(), slice_min() and slice_sample(). Subscribe to stay up to date on my latest - [AI Ethics: Why It Matters and How to Practice It](https://drlyndonwalker.com/ai-ethics-why-it-matters-and-how-to-practice-it/) - Artificial intelligence (AI) is transforming the world in many ways, from improving healthcare and education to enhancing productivity and entertainment. However, AI also poses significant challenges and risks for human rights, dignity, privacy, security, and the environment. Therefore, it is essential to ensure that AI is developed and used in an ethical manner that respects - [Easy Summary Tables in R with gtsummary](https://drlyndonwalker.com/easy-summary-tables-in-r-with-gtsummary/) - The gtsummary package lets you produce summary statistics for your numeric and categorical variables, formatted into a neat table. You can include p-values for pairwise comparisons and also split your summary across the categories of one of your covariates. Subscribe below to get updates on my latest videos, courses, and other useful information. library(tidyverse) library(gtsummary) - [Adding Themes to your ggplots in R](https://drlyndonwalker.com/adding-themes-to-your-ggplots-in-r/) - Themes are a convenient way change the appearance of ggplots that you have created in R. In the video and code below I provide examples from a variety packages, showing themes that range from professional and serious, like the Wall Street Journal, BBC, and FiveThirtyEight, through to fun ones styled after TV themes like The - [Raincloud Plots in R](https://drlyndonwalker.com/raincloud-plots-in-r/) - The raincloud plot is a data visualization which is a combination of a density curve of the distribution, and box and whisker plot, and a histogram style dot plot. By showing the density curves these graphs provide the viewer with a much better picture of the data than a box plot by itself. It is - [Beautiful Regression Assumption Plots in R](https://drlyndonwalker.com/beautiful-regression-assumption-plots-in-r/) - The performance package in R lets you produce regression assumptions tests and plots. In this video I use the performance package in R to produce a set of beautiful and useful plots to check the assumptions of a linear regression. I contrast this to the plots in base R and also review some of the - [Asking ChatGPT about data science careers](https://drlyndonwalker.com/asking-chatgpt-about-data-science-careers/) - ChatGPT is a chatbot developed by OpenAI that utilizes the GPT-3 (Generative Pre-trained Transformer) language model to generate human-like responses in real-time conversations. It can be used in chat applications or on social media platforms to engage with users and provide support or information. ChatGPT is trained on a large dataset of human conversations and - [Animating ggplots with gganimate](https://drlyndonwalker.com/animating-ggplots-with-gganimate/) - The gganimate package lets you add animation to your ggplots in R. In this video I demonstrate how to recreate animated bubble plots like the http://gapminder.org site and how to save them as gif files that you can use in publications, websites, presentations, and on social media (they are particularly popular on LinkedIn). The code - [APA Tables and Psychology Oriented Analysis in R with the rempsyc Package](https://drlyndonwalker.com/apa-tables-and-psychology-oriented-analysis-in-r-with-the-rempsyc-package/) - The rempsyc package in R provides a number of useful tools for researchers, including producing APA formatted tables and exporting them to Word for publication, testing regression assumptions, presenting contrasts, moderation, slope analysis, and other useful analysis and presentation tools, particularly for those working in Psychology or fields that use APA styled formatting and analysis. - [Play Classic Arcade Games in R with the Rcade Package](https://drlyndonwalker.com/play-classic-arcade-games-in-r-with-the-rcade-package/) - The Rcade package lets you play a range of classic video games including Pacman, BoulderDash, and Tetris in RStudio. Check out my video demo and then use the code below to play games yourself. Sign up for my mailing list: # install package from github devtools::install_github('RLesur/Rcade') # list games Rcade::games # launch a game (requires - [Tetrachoric Correlation](https://drlyndonwalker.com/tetrachoric-correlation/) - The tetrachoric correlation is a correlation measure for binary variables and is commonly used in psychometrics, particularly for Item Response Theory (IRT). As with other correlation measures, a tetrachoric correlation ranges between -1 and 1, and describes the association between the two binary variables. In the following video I discuss the basics on tetrachoric correlation - [How to Search and Filter Text in R](https://drlyndonwalker.com/how-to-search-and-filter-text-in-r/) - In the video and code below I demonstrate how to use R to search and filter text. For examples I use the Friends package which contains the transcripts of all of the episodes of the Friends TV show. Subscribe below to get updates on my latest videos, courses, and other useful information. library(friends) library(tidyverse) data(friends) - [How to Plot a Color Coded Map of USA in R](https://drlyndonwalker.com/how-to-plot-a-color-coded-map-of-usa-in-r/) - In this video I use the ggplot2 package and the built in USArrests data in R to create a color coded plot of the United States of America. I explain what the various bits of code do and highlight some of the main issues that people run into when trying to produce a color coded - [Moving columns in R with relocate](https://drlyndonwalker.com/moving-columns-in-r-with-relocate/) - The relocate() function is a simple but very useful function from the Tidyverse. It allows you to move the position with columns within a data frame. I use this most often where I have been delivered data that is not presented in a logical column order, particularly if I am going to be using the - [Arranging plots in R with the patchwork package](https://drlyndonwalker.com/arranging-plots-in-r-with-the-patchwork-package/) - The patchwork package in R allows you to customise the arrangement of your graphs. In the following video I work through a number of examples. The code and examples from the video are also provided below for you. library(patchwork) library(tidyverse) p1 - [Looping Likert Summary Tables in RMarkdown or Quarto](https://drlyndonwalker.com/looping-likert-summary-tables-in-rmarkdown-or-quarto/) - Survey analysis, particularly in psychology, can involve the use of many Likert scale items. The following code and YouTube video show you how to use for loops in R to produce a set of summary tables, with frequencies and percentages for each Likert question crosstabulated with a series of of categorical variables. Sign up to - [Getting Started with Quarto](https://drlyndonwalker.com/getting-started-with-quarto/) - Quarto (quarto.org) is a new open source publishing system. It works with Python, R, Julia, and Observable. Imagine RMarkdown on steroids. In the following video I look at how to get started with Quarto in RStudio, and explore the tutorials and useful tools that elevate Quarto over RMarkdown. To get started with Quarto, download it ## Pages - [Home](https://drlyndonwalker.com/) - Dr Lyndon Walker YouTuber, Statistician, Researcher, Online Course Builder, and Speaker. Online Courses R Statistics research - [Online Courses](https://drlyndonwalker.com/online-courses/) - SKILLSHARE COURSES (ONE MONTH FREE WITH THESE LINKS) How to Write an Academic Journal Article Although academic journal articles are normally written by university professors, it can be done by anyone who can produce sufficient quality work. This course provides a beginner's guide on how to write your own academic journal article, including how to - [About Me](https://drlyndonwalker.com/about/) - I am a PhD qualified statistician with 25 years experience using R. I have previously lectured statistics, data visualization, and finance, and have qualifications in statistics, finance, sociology, and education. I have published in a wide range of domains and now provide consulting and advisory services in statistics, educational design, data ethics, AI ethics, and - [Contact](https://drlyndonwalker.com/contact/) ## Categories - [R](https://drlyndonwalker.com/category/r/) - [Statistics](https://drlyndonwalker.com/category/statistics/) - [Education](https://drlyndonwalker.com/category/education/) - [AI](https://drlyndonwalker.com/category/ai/) - [Excel](https://drlyndonwalker.com/category/excel/) - [Python](https://drlyndonwalker.com/category/python/) ## Tags - [Quarto](https://drlyndonwalker.com/tag/quarto/) - [R](https://drlyndonwalker.com/tag/r/) - [cricket](https://drlyndonwalker.com/tag/cricket/) - [rstats package](https://drlyndonwalker.com/tag/rstats-package/) - [ggplot2](https://drlyndonwalker.com/tag/ggplot2/) - [maps](https://drlyndonwalker.com/tag/maps/) - [text mining](https://drlyndonwalker.com/tag/text-mining/) - [friends data](https://drlyndonwalker.com/tag/friends-data/) - [statistics](https://drlyndonwalker.com/tag/statistics/) - [psychometrics](https://drlyndonwalker.com/tag/psychometrics/) - [correlation](https://drlyndonwalker.com/tag/correlation/) - [data visualization](https://drlyndonwalker.com/tag/data-visualization/)