Try a new font or use icons in your viz. You can find inspiration at fonts.google.com.
This may sound simple but it can be infuriatingly hard to implement new fonts. That's why I've put together a tutorial for ggplot albert-rapp.de/posts/ggplot2-…
8 // New chart types
It's always nice if something just works out of the box. Many chart types come wrapped in such a box.
For example, want to do a bump chart? R's {ggbump} package makes that really simple.
Ever heard of logistic regression? Or Poisson regression? Both are generalized linear models (GLMs).
They're versatile statistical models. And by now, they've probably been reframed as super hot #MachineLearning. You can brush up on their math with this 🧵. #rstats#Statistics
Let's start with logistic regression. Assume you want to classify a penguin as male or female based on its
* weight,
* species and
* bill length
Better yet, let's make this specific. Here's a data viz for this exact scenario. It is based on the {palmerpenguins} data set.
As you can see, the male and female penguins form clusters that do not overlap too much.
However, regular linear regression (LR) won't help us to distinguish them. Think about it. Its output is something numerical. Here, we want to find classes.
I am rebuilding my #rstats blog from the bottom up with #quarto. This will let me use quarto's cool new tricks like tabs and easy columns.
I've already spent hours using quarto's great docs to build a custom blog. If you want to do the same, let me show you what I did.
Today, I will show you the first of many steps to your own quarto blog. First, create a new quarto blog project via RStudio.
Make sure to create a git repo as well. This lets you revert changes when you break your blog. You can follow along my repo at github.com/AlbertRapp/qua…
You can render your blog with `Render Website` from RStudio's `Build` tab.
The first easy changes happen in the `_quarto.yml` file.
1⃣ Set `theme: default`
2⃣ Name your blog via `title`
3⃣ Link your GitHub profile etc.
This will change the navbar at the top of your blog.
Last week, I held a short workshop teaching #RStats to Economics students without prior programming experience.
Here are 6 lessons I learnt that I wish I had known in advance.
1⃣ Do less.
An ambitious curriculum is usually my thing. But I did not anticipate how much time it would take to get students back on track.
Without any programming experience, students will get stuck in unexpected places. Plan to do less and you will feel less pressured.
2⃣ Teach through typing
I thought letting students literally type along was silly.
Well, I thought wrong. Having typed a code snippet themselves seemed to make students have a better feeling for the code. Later on during exercises, they were better at adjusting the code.