Antti Rask's Avatar

Antti Rask

@youcanbeapirate.bsky.social

Data Visualization | (Power) BI | R: RandomWalker package (co-author), TuneTeller Shiny App (author), and the author of the upcoming book ggplot2 extended l Helsinki Data Week (founder)

201 Followers  |  803 Following  |  28 Posts  |  Joined: 12.11.2024  |  2.3575

Latest posts by youcanbeapirate.bsky.social on Bluesky

Post image

And now for something completely differentโ€ฆ

I like to take photographs. I used to post a lot of street art photos on Instagram (that Iโ€™m leaving for good before the year is over).

This one happened by accident. A raindrop fell on the lens of the iPhone camera. So no filters needed!

#VisitHelsinki

19.12.2024 21:00 โ€” ๐Ÿ‘ 3    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Sure, but I don't see this as an either/or type of situation. More as a both/and kind.

What using the pipe (in addition to the assignment arrow) gives me is the ability to decide what to assign and when.

Without the pipe, every step needs to be assigned and I've seen that lead to hairy situations.

15.12.2024 09:12 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Anyway, here's the only change you need to make to get that. Not a big change, after all:

Before:
...
select(color, hex)
...

After:
...
pull(hex)
...

15.12.2024 00:39 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Why return a tibble? Personal preference, I guess.

If I need to do something else, Iโ€™ll modify the code accordingly.

Iโ€™m more interested in showing what is possible instead of trying to nail the one true/right/correct/best way of doing a thing.

There are enough of those kinds of people aroundโ€ฆ

14.12.2024 23:31 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

And the alternative? Iโ€™m genuinely curious. Because for me the hardest code to read is when there are multiple functions inside one another.

And thatโ€™s the world (Excel) I came from when I started to learn R in 2020 (I know, Iโ€™m still a relative newcomer). But still I prefer the pipe.

14.12.2024 23:02 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Not hating on data.table, but I am loving tidyverse.

And honestly, to me, clear and logical syntax is everything. Also, I'm not saying that tidyverse has gotten it right every time. But most of the times, yes.

ps. Ceci n'est pas une pipe... but yeah, pipes are part of the clear and logical syntax.

14.12.2024 22:38 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

No new book chapter. But here's a function to turn color names into hex codes.

The image is missing:
library(tidyverse)

color_to_hex(c("cyan4", "blue"))

A tibble: 2 ร— 2
color hex
<chr> <chr>
cyan4 #008B8B
blue #0000FF
2 rows

#ggplot2
#DataViz
#Writing
#RStats
๐Ÿ’™๐Ÿ“š
๐Ÿ“Š

14.12.2024 22:15 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

Writing ggplot2 extended continues...

The latest published (first version) chapter is about visualizing data summaries.

The {DataExplorer} package by Boxuan Cui is the main character of this one:
ggplot2-extended-book.com/data#sec-sum...

#ggplot2
#DataViz
#Writing
#RStats

๐Ÿ’™๐Ÿ“š
๐Ÿ“Š

08.12.2024 11:43 โ€” ๐Ÿ‘ 10    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

The deep goal of bluesky is to decentralize the social internet so that every individual controls their experience of it rather than having it be controlled by 5 random billionaires. Everyone thinks they signed up for a demuskified twitter...we actually signed an exciting and bizarre experiment.

03.12.2024 16:05 โ€” ๐Ÿ‘ 57845    ๐Ÿ” 6410    ๐Ÿ’ฌ 1294    ๐Ÿ“Œ 461

I must say this as clearly as possible: if you have, in the last ten years, thought "I just don't get tech" or that you're "getting old" or "you're not technical," you are the victim - so much of the tech industry is now oriented around making you do stuff rather than doing stuff for you.

29.11.2024 19:34 โ€” ๐Ÿ‘ 6399    ๐Ÿ” 1609    ๐Ÿ’ฌ 153    ๐Ÿ“Œ 138

You are not "too old," you don't "just not get it." Things have stopped being made intuitively by default. You are the victim, you are being gaslit into believing you are deficient when using software made by companies that have failed you.

29.11.2024 19:36 โ€” ๐Ÿ‘ 2383    ๐Ÿ” 315    ๐Ÿ’ฌ 43    ๐Ÿ“Œ 26
Post image

I updated my GitHub profile! It was about time (the last update was from 2022) too...

By the way, the number of contributions in the past five years: 4 -> 15 -> 25 -> 64 -> 128

Will I make 256 contributions in 2025? Probably not, but it is crazy that the growth has been more or less 2x each year.

01.12.2024 23:24 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Analysis | Musk admits X throttles links as โ€˜news influencersโ€™ take over Hard times for the humble hyperlink and those who depend on it.

Musk admitted X throttles links, and Threads is only a little better. But social media's quiet war on links has been going on for years. I wrote about how big tech has been draining the open web's lifeblood and giving us "news influencers" instead of the news. www.washingtonpost.com/politics/202...

27.11.2024 14:24 โ€” ๐Ÿ‘ 3921    ๐Ÿ” 1051    ๐Ÿ’ฌ 97    ๐Ÿ“Œ 95
Post image

Planning next year with my dearest Helsinki Data Week crew @jkor.bsky.social, @eevamaija.bsky.social & Sรคde Haveri!

Anyway, what are your plans for next fall? ๐Ÿค“

www.helsinkidataweek.com

#HelsinkiDataWeek
#VisitHelsinki
#VisitFinland
#HDW2025

30.11.2024 18:44 โ€” ๐Ÿ‘ 6    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Actually, I think I changed my mind about DataExplorer. The part of it that deals with EDA is among the more useful visual summarization tools out there, it seems. Plus I'm experiencing some annoying problems with gt + gtExtras (especially the gt_plt_summary() function)...

28.11.2024 17:11 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

ggquickeda: this is the EDA app I was already going to write about
trelliscopejs: will be featured in the Interactive Plots section
ExPanDaR: this was new to me, but looks promising! Might find its way to the Automated EDA app chapter...

27.11.2024 23:00 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

GGally: this is one of the packages I will showcase in the Visualizing data subchapter
ggforce: this will be featured heavily in the book, but not in the EDA section
corrplot: not a ggplot2 extension, but I'm featuring ggcorrplot instead

27.11.2024 23:00 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

naniar: as mentioned, it was mentioned in the latest published chapter of the book
explorer: another new one to me, looks more like a general EDA tool than something specifically for visualizations
DataExplorer: similar to tidyplot, DataExplorer seems more of a Helper than an EDA tool to me

27.11.2024 22:59 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@ercbk.bsky.social, here are my thoughts about the packages you mentioned so far:
tinyplot: not a ggplot2 extension as you mentioned, looks cool otherwise
tidyplot: this was new to me, but I would put it under the Shortcuts > Helpers section of the book instead of EDA

27.11.2024 22:57 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

ggplot2 extended continues...

The latest published (first version) chapter is about visualizing missing values in your data set.

The {naniar} package by Nicholas Tierney et al. is the main character of this one:
ggplot2-extended-book.com/data#sec-mis...

#ggplot2
#DataViz
#Writing
#RStats

๐Ÿ’™๐Ÿ“š
๐Ÿ“Š

27.11.2024 22:01 โ€” ๐Ÿ‘ 7    ๐Ÿ” 3    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
ggplot2 extended - 2ย  Data

@ercbk.bsky.social, I just finished writing the first version of 2.2.1 Missing values. Not surprisingly naniar is the main package I write about: ggplot2-extended-book.com/data#sec-mis...

27.11.2024 21:37 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

LinkedIn prompts us to "Start a post, try writing with AI".

How about "Start a post, try writing without AI"? I know I would be much happier if my fellow LinkedIn users did that instead.

Making yourself sound like a bot isn't doing you any favors in the already competitive job market.

#Facts
#AI

27.11.2024 21:23 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Dataviz bingo card with squares such as "used a pie on the table as a visual aid" and "so you do computer stuff".

Dataviz bingo card with squares such as "used a pie on the table as a visual aid" and "so you do computer stuff".

Ready for a holiday challenge thatโ€™s more fun than explaining your job? Grab our ๐Ÿ“Š Data Viz Holiday Bingo card and see if you can spot all the classic family reactions to what you do for a living. Post your cards and maybe even win bragging rights at the dinner table!

@datavizsociety.bsky.social

27.11.2024 17:25 โ€” ๐Ÿ‘ 47    ๐Ÿ” 13    ๐Ÿ’ฌ 6    ๐Ÿ“Œ 3

Thank you, @ercbk.bsky.social! Most of these were already on my radar, but Iโ€™ll check the complete list tomorrow to see if there were some Iโ€™ve missed previously. Much appreciated!

24.11.2024 00:29 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

I'm continuing to write ggplot2 extended, the book. This week I'm writing about ggplot2 extensions that help with the EDA process.

What are your favorite ggplot2-related EDA tools?

Let me know in the comments!

ggplot2-extended-book.com/data#sec-exp...

#ggplot2
#DataViz
#Writing
#RStats

๐Ÿ’™๐Ÿ“š
๐Ÿ“Š

22.11.2024 20:58 โ€” ๐Ÿ‘ 8    ๐Ÿ” 2    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Thank you! The only other chapter that has text in it is Data. Even that is only half ready.

I know there are pros and cons in this building-in-public thing. But Iโ€™m hoping there is this positive pressure to get things done when there are people maybe even waiting for a certain chapter to be done.

17.11.2024 19:58 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

What's the purpose and scope of ggplot2 extended? What will you learn by reading the book (when it's done)? What won't you and why? Who is the book for? Who am I to write it? What next?

The answers can be found here:
ggplot2-extended-book.com/introduction

#ggplot2
#DataViz
#Writing
#RStats

๐Ÿ’™๐Ÿ“š
๐Ÿ“Š

17.11.2024 10:35 โ€” ๐Ÿ‘ 14    ๐Ÿ” 2    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1
Post image

THE 2024 MAD LANDSCAPE X WHERE'S WALDO? - The crossover you didn't know you needed! Think you can spot the familiar friendly fellow with a striped shirt?

Thank you and sorry Matt Turck! I'm a big fan of the original concept.

#FunnyBecauseItsTrue
#FridayMemes
#MAD2024
#DataBS
#Satire

15.11.2024 16:42 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I havenโ€™t pronounced it like that, @libbyheeren.bsky.social, but after this I will!

15.11.2024 12:06 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

More time for coffee and donuts?

14.11.2024 17:23 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@youcanbeapirate is following 19 prominent accounts