tags

  • About
  • Blog
  • Talks
  • Projects
  • About
  • Blog
  • Talks
  • Projects

A year with Visible Long-Covid Tracking

May 01, 2025

This post dives into a year of tracking Long Covid symptoms and progress using the Visible app. Dr. Mowinckel, a quantitative scientist, shares their experience monitoring heart rate, heart rate variability (HRV), daily symptoms, and functional capacity using the app’s features and the FUNCAP27 questionnaire. Discover how this data provides insights into pacing strategies, identifies potential warning signs like HRV spikes, and reveals meaningful clusters of interconnected symptoms and experiences. Explore the journey of living with and managing Long Covid through the lens of personal health data.

Positron: current joys and pains

Apr 01, 2025

After 6 months, Positron’s modern interface, polyglot support, & viewers are loved. Debugger quirks persist: console hangs, history issues, & tab focus. Data viewer lacks list support & labeled data. Despite pains, Positron’s potential shines.

Harness Local LLMs and GitHub Copilot for Enhanced R Package Development

Mar 03, 2025

In this post I explore local large language models (LLMs) with R for code assistance, using tools like chores, ensure, gander, and continue in Positron. The post explores R options and keybindings for various tools, adjusting settings to optimize performance. Lastly, I switch to GitHub Copilot for better results, encountering rate limits but finding workarounds to control autocomplete triggers.

Cracking the LinkedIn API through R

Feb 01, 2025

I share my experience integrating R with the LinkedIn API, focusing on personal authentication and posting processes. The documentation and workflow were complex, but with help from the rOpenSci community, I successfully navigated the challenges. I detail steps for API access, authentication, and creating posts, highlighting key obstacles like managing OAuth tokens, API products, and endpoints.

Posting to Bluesky from R

Dec 02, 2024

With the recent mass exodus from Xitter, Bluesky has emerged as a new home for the R community. Discover how to join the community with starter packs and automate posting to Bluesky from R using GitHub Actions. Explore detailed steps for setup and automation, making it easy to share your latest blog posts on social media platforms.

Reading in multiple files without loops

Nov 01, 2024

Learn how to use apply-functions in R to read multiple files efficiently. This guide covers the basics of using sapply and lapply to iterate over files quickly, eliminating the need for loops.

Creating post summary with AI from Hugging Face

Oct 07, 2024

Optimize your blog’s SEO and Zenodo metadata with automated summaries using Hugging Face’s text summarization models. Learn how to connect to the Hugging Face API, prepare content, and integrate summaries into your markdown files using R and the httr2 package.

Making your blog FAIR

Sep 06, 2024

Making your blog FAIR (Findable, Accessible, Interoperable, and Reusable) by archiving posts on Zenodo and adding DOIs. Learn how to use Hugo, GitHub actions, and the Zenodo API to ensure your content is preserved. Enhance your blog’s visibility and reliability.

Positron IDE - A new IDE for data science

Aug 01, 2024

Positron, an IDE developed for data science, combines the best features of RStudio and Visual Studio Code. Learn about its features, customization options, and extensions. Discover how Positron compares to other popular IDEs and why it’s a promising tool for data scientists.

Improving your GitHub Profile

Jul 01, 2024

Improve your GitHub profile with these tips. Learn how to create a repository with your username, add stats, coding skills, preferred IDEs, blog stats, and more. Customize your profile to make it engaging and showcase your skills and interests effectively.

Customise your R startup message

Jun 01, 2024

Customize your R startup experience by modifying the R startup message, adding useful system information, and fun elements like a praise or colour bar. Learn how to edit the .Rprofile file, clear the console, print system details, and add a personalised message using the {praise} and {cli} packages for an enjoyable R session.

The IDEs I use

May 01, 2024

Explore my programming IDE journey, from MATLAB and gedit to RStudio and VSCode. Learn about the strengths of each IDE for different languages and tasks, and why I switch between RStudio and VSCode depending on the project. Insights on optimizing your coding environment for efficiency and productivity.

Too much git cleaning

Apr 01, 2024

Learn how to handle git mistakes and recover lost work with simple solutions. Explore commands like git clean and git reset, and discover how to undo mistakes using ctrl + z in RStudio. Gain confidence in your git journey with tips from experienced developers and helpful resources.

Setting up a Freesurfer LMM through R

Mar 01, 2024

Learn to create model matrices for Freesurfer Linear Mixed Models (LMM) in R using built-in functions. This guide walks you through manually creating model matrices, utilizing the model.matrix function, and standardizing variables. Includes creating a function to streamline the process, making neuroimaging data analysis more efficient.

Teaching you - teaching me

Feb 01, 2024

Teaching is rewarding, especially in coding workshops. Reflecting on experiences from Digital Scholarship Days at the University of Oslo, I learned valuable lessons from learners about Quarto slides, project management, and teaching challenges. Continuous improvement in teaching methods benefits both instructors and learners.

Posit::conf 2023

Sep 26, 2023

Attending Posit::conf (formerly RStudio::conf) in Chicago was an exhilarating experience filled with learning, speaking engagements, insightful workshops, and connecting with the R and Data Science communities. Highlights included workshops on R fundamentals and package development, exciting updates on Quarto, and invaluable networking opportunities.

Advent of R Functions

Dec 01, 2022

Explore 15 essential pieces of R code to streamline your data analysis and visualization workflow. From creating directories and handling files to customizing ggplot and working with logit scales, these snippets can help you enhance your programming efficiency and maintain cleaner scripts.

Let’s Get Apply’ing

Nov 07, 2022

Learn to replace loops with vectorized apply functions in R for efficient data manipulation. This guide covers converting loops to functions using sapply and mapply, enhancing your programming skills by making code more readable and less error-prone.

New {ggseg} with Geom!

Mar 14, 2021

We released a new version of the ggseg R-package for visualizing brain atlases. It features a geom_brain function and position_brain for flexible brain slice positioning in ggplot2. This update enhances atlas plotting, offering more customization and improved visuals.

New Year’s Wishes

Dec 31, 2020

Here’s a ggplot2 holiday card wishing you a better 2021! Explore how to create a festive holiday plot in R with ggplot2. Understanding the preparation of data for plotting, using geom_circle, adding blur effects, and customizing text. This exercise enhances your skills in working with ggplot2 and thinking critically about data structures and visual outputs.

R-Package Advent Calendar 2020

Dec 25, 2020

This year, I started a Twitter advent calendar showcasing one R-package per day, each of which I find essential for my work. The aim is to highlight useful packages, both familiar and lesser-known, and offer insights into their functionalities. Follow along to discover packages from CRAN, BioConductor, GitHub, and more, and perhaps find new tools to enhance your work.

The Linear Regression Family in R

Jun 24, 2020

Linear regression is essential in psychology, often disguised as t-tests or ANOVAs. This guide explains running linear models in R, comparing t-tests, Pearson correlations, ANOVAs, ANCOVAs, and more. Understand how to specify models, run tests, and interpret them with real data examples. Gain confidence in translating your hypotheses into linear models and applying statistical methods effectively.

Changing your Blogdown Workflow

May 25, 2020

Updating my hugo setup on netlify took over a year of delays due to complexities. After extensive work, I transitioned from knitting .html to .md, fixed theme issues, and resolved netlify CSS problems. Follow my step-by-step guide to smoothly update your blogdown website. Learn to make use of hugo’s page bundles, adjust configurations, and ensure seamless rendering both locally and on netlify. This guide addresses key changes you might face, from altering your workflow to understanding theme changes and troubleshooting rendering issues.

Using Freesurfer annotation files to plot in R

Apr 30, 2020

For neuroimaging, toggling between R and imaging software like FSL or Freesurfer is common. We segment large 3D brain data into meaningful regions. Our ggseg and ggseg3d packages visualize the brain’s Desikan-Killany atlas in 2D and 3D. Learn the steps to convert Freesurfer annotation files to mesh files using the ggsegExtra package for enhanced brain data visualization.

Do you wanna build a snowman?

Dec 11, 2019

Celebrate with another Christmas special! Following last year’s festive ggplot tree, build an interactive snowman using R, ggplot2, ggforce, and gganimate. Learn to create a snowman from circles, add features like a face, arms, and accessories, and animate falling snow. Enhance your R skills and holiday spirit with this detailed tutorial, ending with a personalized “Merry Christmas!” message.

ggseg3d - creating interactive brain segmentation plots with plotly

Dec 06, 2019

Discover how to create interactive 3D brain atlas plots using the ggseg3d package in R. Learn to visualize neuroimaging data with plotly, including setting up and customizing brain atlas plots. Ideal for neuroscientists and data scientists working with brain segmentation data.

Plotting GAMM interactions with ggplot2

Nov 16, 2019

Discover how to visualize Generalized Additive Mixed Models (GAMMs) with interactions in R using ggplot2 and mgcv. This tutorial covers numeric and factor interactions, creating prediction datasets, and generating smooth plots. Ideal for enhancing your data analysis and visualization skills.

R for Psychologists - part II

Jul 17, 2019

Improve your data visualization skills in R with this comprehensive guide on creating plots using ggplot2. Learn to wrangle data, create long-format datasets, and produce various types of plots, including histograms, scatter plots, and regression lines. Ideal for psychologists transitioning from SPSS to R.

Building tidy tools - a quick recap of RStudio::conf 2019 workshop & teeny demonstration

Feb 02, 2019

Discover the key steps to building R packages effectively with insights from the “Building tidy tools” workshop at RStudio::conf. Learn about package setup, unit testing, documentation, naming conventions, and using essential tools like usethis, testthat, and pkgdown. Create your first package with practical examples and improve your package development workflow.

Why RStudio::conf is the best conference experience I have had

Jan 19, 2019

Reflecting on the unique experience of RStudio::conf, this blog post highlights the community-driven atmosphere, inclusivity, diverse attendance, and the genuine support for speakers. Discover why RStudio::conf stands out among other conferences and how it fosters an inspiring environment for R enthusiasts.

Christmas tree in ggplot

Dec 13, 2018

Celebrate Christmas with a fun and festive Christmas tree plot in ggplot2! Follow this tutorial to create your own animated Christmas tree in R, complete with baubles, a tree topper, and falling snow using gganimate. Learn how to use ggplot2 and gganimate for creative data visualizations.

R for psychologists - just dive into it!

Nov 09, 2018

Learn the basics of using R and RStudio for psychologists. This tutorial covers reading SPSS data, recoding variables, using pipes, creating simple plots, transforming data to a tall format, and running linear models. Discover how to transition from SPSS to R and take advantage of its powerful data analysis capabilities.

Get the brain animated!

Oct 01, 2018

Explore how to create animated visualizations of brain data using the ggseg and gganimate packages in R. Learn to prepare data for animations, customize plots, and generate smooth transitions to visualize changes across different conditions such as age.

Introducing the ggseg R-package for brain segmentations

Aug 30, 2018

Discover ggseg, an R package designed for plotting brain segmentations directly in R with ggplot2. Learn how to visualize results from different brain atlases, customize plots, and integrate your own data. Ideal for neuroimaging researchers needing to plot segmented brain data efficiently.

Circular plots in R and adding images

May 25, 2018

Last post was definately my most succesful (and I have so much experience :P). But it was fun with all the feedback and appreciation. So I’ll continue with a little more plotting. Circular plots are becoming more and more popular in for visualising associatetions between different phenomena. I think they look pretty cool, and while I have not yet published a paper with it, I did prep a lot of scripts for plotting my analysis results with it, with BRAINS! because, brains make it better. Always.

Adding external images to plots

May 07, 2018

Learn how to add external images to your ggplot visualizations in R. This tutorial covers steps to read images and plot them alongside your data, useful for enhancing interpretation and presentation in fields like neuroimaging. Discover how to use functions like readPNG, rasterGrob, and annotation_custom for integrating images with your plots.

GAMM random effects

Apr 05, 2018

Explore the use of Generalized Additive Mixed Models (GAMMs) with random effects using mgcv in R. This blog post covers the differences between specifying random effects in mgcv compared to other packages like lme4 and walks through a detailed example with simulated data. Learn about gamm model output, interpreting random effects, and plot comparisons of different model specifications.

GAMM spaghetti plots in R with ggplot

Mar 08, 2018

Discover how to plot Generalized Additive Mixed Models (GAMMs) using ggplot2 in R. This tutorial covers generating simulated data, creating GAMM models with mgcv, predicting single predictor effects, and using the itsadug package for smooth predictions. Learn the steps to visualize complex models and create informative plots.

2023 Athanasia Mo Mowinckel

Dr. Mowinckel’s