TRANSCRIPT 🔗
WEBVTT
NOTE
Transcription provided by Podhome.fm
Created: 11/06/2026 20:01:59
Duration: 2626.574
Channels: 1
1
00:00:02.879 --> 00:00:06.160
Hello, friends. We are back of episode 247
2
00:00:06.160 --> 00:00:08.080
of the RWKY highlights podcast.
3
00:00:08.480 --> 00:00:33.190
We've hit November, folks, and my goodness. Yeah. It's hard to believe the end of year is almost here. I think many of us would probably be pretty happy with that. Others might be thinking where the time went, maybe somewhere in between. But where the time is now is you're listening to the weekly ish podcast where we talk about the excellent highlights and, if time permitting, other great resources that are shared in this week's issue of R Weekly,
4
00:00:33.350 --> 00:00:35.989
which you can find at rweekly.org.
5
00:00:36.390 --> 00:00:40.309
My name is Eric Nance. I'm delighted that you're joining us from wherever you are around the world.
6
00:00:40.790 --> 00:00:53.965
And, yeah, for those that are curious, the Tooth saga is not resolved yet, but, hopefully, will be in the middle of the month. But my rest of my teeth are intact. I had some good candy after the Halloween treat... Trick or treating,
7
00:00:54.205 --> 00:00:59.520
but I'm not alone here. Of course, I got my awesome cohost, Mike Thomas, with me. Mike, how are you doing today?
8
00:01:00.080 --> 00:01:17.505
I'm doing pretty well. Did we get any listener hate mail last week after our quite unhinged episode or are they still gonna let us podcast this week? Yeah. So far no other cease and desist from our listeners nor the the overlords at Apple and and whatnot. So I think we're still okay for now, but you never know.
9
00:01:19.345 --> 00:01:20.705
Our weekly highlights.
10
00:01:20.945 --> 00:01:48.225
That's alright. Crazy. That's alright. You never know what you're gonna get, like a box of chocolates as the famous movie would go, but we got we got a great selection, I dare say so, of highlights today, so we're gonna get right to it and mention, of course, that each issue is a different curator, and this issue was curated by Jonathan Kitt. And as always, had tremendous help from our fellow RWiki team members and contributors like all of you around the world with your poll requests and other wonderful suggestions.
11
00:01:49.505 --> 00:01:50.064
And,
12
00:01:50.305 --> 00:01:51.185
Mike, a
13
00:01:51.664 --> 00:01:54.545
virtue that we have always advocated
14
00:01:54.545 --> 00:01:57.230
for, much in the spirit of R itself,
15
00:01:57.790 --> 00:02:00.350
is the access to open data.
16
00:02:00.750 --> 00:02:01.870
So many
17
00:02:02.350 --> 00:02:03.229
influential
18
00:02:03.229 --> 00:02:04.590
things can be done.
19
00:02:04.990 --> 00:02:12.655
Whoever you are just learning in data science and you want practice your skills on some real tangible data that's outside that textbook,
20
00:02:13.135 --> 00:02:18.815
or if you are trying to improve a process, improve the understanding of a key issue,
21
00:02:19.295 --> 00:02:24.800
using open data is a wonderful way to do that and to share those results with the world.
22
00:02:25.760 --> 00:02:31.440
Not always is everything smooth in this aspect and sometimes things go kind of weird
23
00:02:31.600 --> 00:02:36.720
when something you could access from say a day ago, a week ago, a month ago,
24
00:02:37.944 --> 00:02:39.225
something changes.
25
00:02:39.545 --> 00:02:44.105
And so you gotta figure out how to how to account for these changes.
26
00:02:44.665 --> 00:03:00.080
And as a data scientist, do you really have time to go under under those rabbit holes, if you will, to solve this? No. But luckily, we have the R community to solve a lot of those issues for us, and that's what this first highlight is gonna do very well here.
27
00:03:00.640 --> 00:03:09.565
And this, blog post introducing not one but two R packages that we're gonna cover here in this highlight was authored by Jens von Bergmann.
28
00:03:09.565 --> 00:03:16.205
Hopefully, I got that right. He is a data scientist at Mountain Math Software based in Canada,
29
00:03:16.925 --> 00:03:19.165
and shout out to our listeners in Canada,
30
00:03:19.640 --> 00:03:21.880
but that's actually a key focus
31
00:03:22.599 --> 00:03:24.360
of this blog post because
32
00:03:24.760 --> 00:03:26.200
Jen talks about
33
00:03:26.599 --> 00:03:27.560
accessing
34
00:03:27.560 --> 00:03:29.880
openly available data from
35
00:03:30.120 --> 00:03:30.840
the
36
00:03:31.560 --> 00:03:32.599
government of Canada,
37
00:03:33.375 --> 00:03:35.775
in particular census data,
38
00:03:36.095 --> 00:03:39.695
as well as additional data specific to the city of Vancouver.
39
00:03:40.334 --> 00:03:43.695
And in the past, he could get to these via APIs.
40
00:03:44.334 --> 00:03:44.895
Well,
41
00:03:45.215 --> 00:03:46.095
not anymore
42
00:03:46.580 --> 00:03:47.860
because apparently,
43
00:03:48.100 --> 00:03:49.300
the organization,
44
00:03:49.540 --> 00:03:53.140
putting out these data for Canada called STAT CAN,
45
00:03:53.700 --> 00:03:56.100
it started to block more programmatic
46
00:03:56.100 --> 00:04:00.420
access to the census data since, earlier this year in October.
47
00:04:01.495 --> 00:04:04.375
Now, of course, you can go to the webpage,
48
00:04:04.855 --> 00:04:05.815
click around,
49
00:04:06.135 --> 00:04:07.655
download that export
50
00:04:07.655 --> 00:04:08.695
manually,
51
00:04:09.334 --> 00:04:14.055
but man, when you've had that programmatic access, it's hard to go back to that.
52
00:04:14.375 --> 00:04:16.135
And also the city of Vancouver
53
00:04:16.470 --> 00:04:17.830
has also
54
00:04:18.550 --> 00:04:21.590
changed things a bit where now their API
55
00:04:21.750 --> 00:04:26.070
doesn't actually give you the data, it just gives you links to download the data.
56
00:04:26.870 --> 00:04:31.510
Figure that one out, folks. I don't know. I'm not gonna pretend to read minds there.
57
00:04:32.185 -->
Load full transcript
00:04:33.705
So in either case,
58
00:04:34.505 --> 00:04:46.960
things are a little more difficult for him to access his data. So he took matters in his own hands and he has two R packages to account for different aspects of this data, importing and data processing.
59
00:04:47.280 --> 00:04:53.760
I'm going to tackle the first one here, Mike will tackle the second one, and the first one is called Safe Conduct,
60
00:04:54.240 --> 00:04:55.600
which is basically,
61
00:04:55.840 --> 00:04:57.360
if you want to think about
62
00:04:57.745 --> 00:05:01.505
all the different ways you can download things on the internet,
63
00:05:01.905 --> 00:05:05.905
safe conduct is really meant to abstract away
64
00:05:06.065 --> 00:05:06.785
you
65
00:05:06.945 --> 00:05:11.665
trying out different methods when your primary method didn't work.
66
00:05:12.820 --> 00:05:17.220
I have strong sympathy for this perspective, albeit for a much different use case.
67
00:05:17.699 --> 00:05:19.700
When internally at the day job,
68
00:05:19.940 --> 00:05:21.940
we were starting to use R more,
69
00:05:22.180 --> 00:05:28.815
but was still dealing in the world of cough cough SAS with SAS seven b data files,
70
00:05:28.895 --> 00:05:44.380
and there were times when the Haven package just could not read that file effectively enough, and I had to write an internal shim to do basically two different methods to import that data. Not important what those methods were. They were kind of cludgy at best,
71
00:05:44.780 --> 00:05:48.700
but this package feels very similar to that because
72
00:05:49.020 --> 00:05:51.580
this package is gonna go through
73
00:05:51.900 --> 00:05:58.315
almost like four or five different methods of downloading a given resource that you pointed to.
74
00:05:58.635 --> 00:05:59.355
First,
75
00:05:59.675 --> 00:06:02.075
it's going to try a simple curl request.
76
00:06:02.395 --> 00:06:05.515
Curl is like a lower level system library
77
00:06:05.670 --> 00:06:07.110
to programmatically
78
00:06:07.110 --> 00:06:11.830
grab the contents of a link and bring that content down to your system.
79
00:06:11.990 --> 00:06:18.950
It's used under the hood practically every software we use that deals with the Internet uses CURL in one way, shape, or form.
80
00:06:19.510 --> 00:06:20.950
If that doesn't work,
81
00:06:21.655 --> 00:06:23.975
then it starts to get a little gnarly,
82
00:06:23.975 --> 00:06:26.295
albeit in in a very geeky way.
83
00:06:26.775 --> 00:06:31.735
It then tries to launch a headless web browser session with Chrome... The Chrome engine,
84
00:06:32.615 --> 00:06:40.670
and then if that part doesn't work, it does the same thing, but then does a specific user agent to make it look like a human doing it.
85
00:06:41.230 --> 00:06:45.950
And then if that doesn't work, it actually boots up an interactive Chrome session.
86
00:06:46.510 --> 00:06:47.310
And then
87
00:06:47.550 --> 00:06:50.590
last but not least, an interactive Chrome session
88
00:06:50.805 --> 00:07:00.005
that has to deal with one of those CAPTCHA dialogues that you often have to put in when you have to access something securely or if it's verifying your identity,
89
00:07:00.324 --> 00:07:02.885
it's got a method for that too.
90
00:07:03.205 --> 00:07:07.949
So yes, the author acknowledges here that's definitely a bit cumbersome,
91
00:07:07.949 --> 00:07:11.790
but chances are one of those four or five methods
92
00:07:11.870 --> 00:07:13.229
is going to work.
93
00:07:13.470 --> 00:07:19.069
So he does have an example here of doing this with both that stat can resource of data,
94
00:07:19.555 --> 00:07:21.875
as well as the city of Vancouver's
95
00:07:21.875 --> 00:07:23.794
access for accessing
96
00:07:24.035 --> 00:07:25.955
the link from the API,
97
00:07:26.514 --> 00:07:29.635
and yep, it's got a shim function,
98
00:07:29.955 --> 00:07:31.235
which is called fetch.
99
00:07:31.474 --> 00:07:35.820
That's where you would use instead of like the typical download. File
100
00:07:35.980 --> 00:07:37.820
that you might do in VASAR.
101
00:07:38.700 --> 00:07:44.140
So once you... He shows what it... When it doesn't work, we'll just download. File,
102
00:07:44.460 --> 00:07:47.500
and then if you tried to do curl, if that didn't work directly,
103
00:07:47.955 --> 00:07:52.835
but then with safe conduct, it goes through these different methods, trying the headless chrome,
104
00:07:53.235 --> 00:07:58.115
and then it has nice messages telling you what's happening behind the scenes in case you're curious.
105
00:07:58.675 --> 00:08:00.034
And then if it opens a window,
106
00:08:00.680 --> 00:08:07.160
and then if you have to click something in the window, you go ahead and click it. So there might be still some manual effort involved,
107
00:08:07.400 --> 00:08:10.120
but boy oh boy, I can see how that save
108
00:08:10.280 --> 00:08:13.160
a lot of time. You just want to get your hands on that data again
109
00:08:13.480 --> 00:08:19.775
and to be able to account for these different hoops that the provider is making you jump through.
110
00:08:20.255 --> 00:08:26.095
So there are interesting additional functions you can use in this, such as the probe function
111
00:08:26.335 --> 00:08:32.415
that actually looks at what the server is returning as a response in case you need more diagnostics.
112
00:08:33.190 --> 00:08:40.710
If you had a chance to talk to their IT group or something, you might be able to pass that information to them. Not that I would pretend that you would get that opportunity
113
00:08:40.790 --> 00:08:45.589
because a lot of times these IT groups like to stay in the shadows. You heard it from me first.
114
00:08:46.535 --> 00:08:47.815
But nonetheless,
115
00:08:47.815 --> 00:08:50.535
it is a very intriguing package here,
116
00:08:50.855 --> 00:08:52.855
but that's not just
117
00:08:53.415 --> 00:09:03.400
the methods that he's provided here. He's got another package that
takes it to another level with how you actually host and consume this data.
118
00:09:03.720 --> 00:09:08.040
So Mike, it's got one of your favorite frameworks in this. Why don't you tell us all about it?
119
00:09:08.600 --> 00:09:14.760
Yeah, we're gonna talk a little bit about Parquet, but Eric, quick story time. Oh, I'm here for it.
120
00:09:15.795 --> 00:09:20.755
We have an open source R package out there called FCall, which downloads
121
00:09:20.755 --> 00:09:24.675
essentially financial statement filings that are public for,
122
00:09:25.075 --> 00:09:27.955
farm credit system banks in The United States.
123
00:09:28.275 --> 00:09:31.555
And that data was
124
00:09:30.720 --> 00:09:34.560
hosted on a website, just at URLs on this website,
125
00:09:34.800 --> 00:09:40.480
in zip format that we unzipped and cleaned up. And we had a nice download data function
126
00:09:40.640 --> 00:09:49.074
that would hit the website and download and unzip the files for folks to then turn into tidy data frames and play around with. Well,
127
00:09:49.475 --> 00:09:51.074
they stuck a Cloudflare,
128
00:09:51.714 --> 00:09:54.995
layer on top of that website. So our,
129
00:09:55.475 --> 00:09:56.755
data download
130
00:09:56.834 --> 00:10:00.130
function did not work anymore. Oh, boy.... The
131
00:10:00.370 --> 00:10:09.570
Cloudflare layer. So this is, you know, a very timely blog post for me that happened fairly recently. And we ended up migrating
132
00:10:09.570 --> 00:10:11.010
all of those files,
133
00:10:11.250 --> 00:10:15.085
kinda manually to an s three bucket. Uh-huh.
134
00:10:15.725 --> 00:10:16.365
So,
135
00:10:17.805 --> 00:10:23.245
introducing now the r two parquet package, getting back to the blog post here.
136
00:10:24.365 --> 00:10:28.045
The... There has been a a new package called r two parquet
137
00:10:28.269 --> 00:10:31.550
that has been developed, and it it all starts with hosting,
138
00:10:31.870 --> 00:10:34.990
these open datasets on Cloudflare r two,
139
00:10:35.470 --> 00:10:38.510
which is something similar to AWS
140
00:10:38.510 --> 00:10:44.835
s three buckets, which I was more familiar with. I was not familiar with Cloudflare r two, but it's essentially,
141
00:10:44.995 --> 00:10:47.075
you know, an s three compatible
142
00:10:47.315 --> 00:10:51.635
service that allows you to host data and has some pretty good advantages,
143
00:10:52.470 --> 00:10:55.589
including sort of automatic global delivery
144
00:10:55.910 --> 00:10:58.389
and, some nice caching features
145
00:10:58.550 --> 00:11:05.189
as well. I think that may make the download, process a little bit more efficient than what you might find in other services.
146
00:11:05.834 --> 00:11:17.115
And, the choice here was to host the data in Parquet format. I certainly don't have to, tell you, Eric, about why Parquet is a fantastic format for storing data.
147
00:11:17.355 --> 00:11:24.010
But for those that aren't initiated yet with Parquet, it's an
open source column oriented data file format.
148
00:11:24.490 --> 00:11:39.035
It's very efficient. So if you have a large CSV file and you stored it as Parquet, the size of that file will probably decrease maybe in half, maybe more or less depending on really how big that file is in the first place.
149
00:11:39.595 --> 00:11:41.274
The column orientation
150
00:11:41.435 --> 00:11:43.274
allows you to just retrieve,
151
00:11:43.755 --> 00:11:48.315
you know, specific columns at a time instead of having to ingest the whole CSV.
152
00:11:48.959 --> 00:11:54.000
And another benefit is that there's metadata stored in that file itself.
153
00:11:55.600 --> 00:11:57.519
Things like sums,
154
00:11:57.680 --> 00:12:05.005
data types as well are stored in the file. You don't have to read that file in. And as part of your data ingestion,
155
00:12:05.005 --> 00:12:10.125
set the data types and do all that parsing. It's already part of the file itself, is
156
00:12:10.525 --> 00:12:11.325
fantastic.
157
00:12:11.485 --> 00:12:12.845
But beyond
158
00:12:13.005 --> 00:12:13.885
Parquet,
159
00:12:14.045 --> 00:12:24.000
this R2 Parquet package has been developed to be able to ingest this data from, you know, for example, the the Cloudflare
160
00:12:24.000 --> 00:12:25.279
R2 storage.
161
00:12:25.839 --> 00:12:29.279
There's also some spatial and metadata enhancements.
162
00:12:29.735 --> 00:12:31.095
There's automatic
163
00:12:31.095 --> 00:12:39.894
ordering of spatial data along a Hilbert curve, not something I'm familiar with kind of outside of my wheelhouse, but allowing for fast spatial queries
164
00:12:40.295 --> 00:12:42.454
using like at the ST filter function.
165
00:12:43.340 --> 00:12:44.700
There's reparation
166
00:12:44.700 --> 00:12:46.540
of invalid geometries.
167
00:12:46.540 --> 00:12:47.180
And
168
00:12:47.420 --> 00:12:49.900
it also embeds multilingual
169
00:12:49.900 --> 00:12:50.860
metadata.
170
00:12:50.860 --> 00:12:53.980
So like the title license and attribution directly
171
00:12:53.980 --> 00:12:58.835
into the file attributes itself. There's a couple of great examples of,
172
00:12:59.155 --> 00:13:07.635
of code here and it it being used as well as, you know, some of the the the time savings that you're probably gonna get by ingesting some larger,
173
00:13:08.195 --> 00:13:10.595
Parquet files. There's a nice
174
00:13:10.900 --> 00:13:12.340
underscore metadata
175
00:13:12.420 --> 00:13:15.860
function, which is really nice to be able to read that that metadata
176
00:13:16.500 --> 00:13:22.980
alone without necessarily having to ingest the whole rest of the Parquet file. And some excellent
177
00:13:23.015 --> 00:13:27.095
sort of data viz, spatial data viz that's going on downstream
178
00:13:27.095 --> 00:13:32.055
with the results of some of these publicly hosted Parquet files. So
179
00:13:32.375 --> 00:13:47.080
fantastic blog blog post. I'm excited about these new two packages because they absolutely do
solve a lot of day to day problems that that I face. Yeah. I'm really intrigued by the different integrations that that we see here across the board.
180
00:13:47.720 --> 00:13:48.920
And another
181
00:13:49.000 --> 00:13:50.120
testament to
182
00:13:50.514 --> 00:13:53.795
if we can make these data easily accessible,
183
00:13:54.115 --> 00:14:00.995
even if we have to jump through hoops to get there, if other, the actual upstream providers aren't making it accessible,
184
00:14:01.235 --> 00:14:02.755
but then to take that processing,
185
00:14:03.170 --> 00:14:06.850
put it in a performant format, send it to cloud storage,
186
00:14:07.570 --> 00:14:11.730
man alive, this is going to benefit a lot of people and a lot of the principles you
187
00:14:12.290 --> 00:14:14.290
can take here to whatever,
188
00:14:14.290 --> 00:14:15.730
you know, organization
189
00:14:16.025 --> 00:14:20.265
needs you may have. I see a lot of a lot of spatial
190
00:14:20.345 --> 00:14:23.705
emphasis here, which I know there have been big advancements
191
00:14:23.945 --> 00:14:26.105
in the Parquet and spatial
192
00:14:26.265 --> 00:14:30.265
space, but it looks like, you know, Jen here has has done a a great,
193
00:14:30.870 --> 00:14:38.630
great job of consolidating some of those updates here with acknowledging that you may also integrate this with some of the other external
194
00:14:38.790 --> 00:14:40.150
packages out there,
195
00:14:40.630 --> 00:14:42.070
to get some additional
196
00:14:42.310 --> 00:14:43.270
functionality.
197
00:14:43.270 --> 00:14:45.670
But, yeah, you know, I had this misconception
198
00:14:45.695 --> 00:14:50.895
that Cloudflare was just for, like, making web pages faster with their CDN.
199
00:14:51.214 --> 00:15:00.334
Boy, folks, if you haven't followed Cloudflare anyway, this is not free advertising, I promise. They do have a lot of services. Although if they want a sponsor... Wait. No. I'm kidding. I'm kidding. I'm kidding.
200
00:15:01.509 --> 00:15:08.709
No one on their side will listen to this. I know a lot of my friends from the Linux circle are building tooling
201
00:15:08.790 --> 00:15:12.630
that will integrate either their container registry service
202
00:15:12.630 --> 00:15:26.355
or the R2 service as a slightly cheaper, it seems like, method of object storage. So I'll have to play with this a bit, but it's great to see that from the R side of things, we can integrate nicely with this platform, but also
203
00:15:26.755 --> 00:15:28.995
just take a really annoying problem
204
00:15:29.649 --> 00:15:31.330
and make better
205
00:15:31.890 --> 00:15:42.610
front ends to it. So I think safe conduct can go hand in hand with other packages that are not so much trying to fix an access issue,
206
00:15:42.930 --> 00:16:00.980
but are literally trying to be more polite about requests, and I say that intentionally because there is an R package called polite to help make your your request not, you know, do a a DDoS on
a web server. So I feel like these two can go hand in hand in a lot of these newer ways of obtaining,
207
00:16:01.220 --> 00:16:02.660
online data and the like.
208
00:16:12.635 --> 00:16:18.235
It's that time again, Mike. We're gonna visit the, visualization corner for our next couple highlights,
209
00:16:18.315 --> 00:16:19.435
and our,
210
00:16:19.995 --> 00:16:21.835
it goes without saying,
211
00:16:22.235 --> 00:16:27.675
boy, do I ever enjoy learning from one of the the key thought leaders in this space
212
00:16:28.269 --> 00:16:33.070
attacking a real applied problem that on the surface you may be wondering,
213
00:16:33.709 --> 00:16:39.630
why do we have to do that? I can tell you very specifically in a large organization,
214
00:16:39.870 --> 00:16:45.695
the method we're about to tell you about is very real and it is very valuable.
215
00:16:46.175 --> 00:16:48.255
What the heck am I alluding to here?
216
00:16:49.215 --> 00:16:58.550
You know, it's one thing to make a great static chart in a graph, and we have many tools in R that can do that, and one of them will be the foundation of what this blog post provides,
217
00:16:59.350 --> 00:17:02.230
but when you want to have that interactivity
218
00:17:02.230 --> 00:17:03.030
feature
219
00:17:03.670 --> 00:17:04.550
without
220
00:17:04.550 --> 00:17:10.950
having to go the full blown shiny route in the case where maybe you don't have a way to host that up effectively,
221
00:17:11.270 --> 00:17:14.445
or the person that's going to be person or people
222
00:17:14.525 --> 00:17:16.524
consuming these visualization
223
00:17:17.085 --> 00:17:27.325
do not have the R expertise to launch an R script and run it on their own footing. There is a way to me in the middle here, and that is to be able to have an interactive chart
224
00:17:27.485 --> 00:17:28.445
that you can provide
225
00:17:29.050 --> 00:17:30.649
via an email.
226
00:17:30.890 --> 00:17:41.450
Yes, this is important, and I'm very pleased to say that Nicola Reeney is tackling this head on in her latest blog post, the subject of our next highlight here.
227
00:17:42.485 --> 00:17:49.605
And, of course, she's been no stranger to telling us how to make a plot that you create with g g plot two
228
00:17:49.925 --> 00:17:51.045
interactive,
229
00:17:51.605 --> 00:17:54.965
but then it's not just that step, it's how do we share it. So
230
00:17:55.205 --> 00:17:59.900
what we'll frame the blog post as is that you start like you usually
231
00:17:59.900 --> 00:18:01.260
do a visualization,
232
00:18:02.140 --> 00:18:05.340
you want to do a nice static representation
233
00:18:05.500 --> 00:18:06.700
of that data,
234
00:18:07.180 --> 00:18:15.554
so you can easily make a g g plot in this example, the diamonds dataset, get a nice scatter plot of the carat versus price, got a nice legend
235
00:18:15.555 --> 00:18:16.675
to facet,
236
00:18:16.915 --> 00:18:17.955
by the cut,
237
00:18:18.515 --> 00:18:23.075
and maybe that's not good enough. Maybe you want to give the user
238
00:18:23.235 --> 00:18:24.755
a way to interact
239
00:18:24.915 --> 00:18:26.995
with the plot itself.
240
00:18:27.555 --> 00:18:29.555
What if you want to add tooltips
241
00:18:29.620 --> 00:18:31.379
as you hover over things?
242
00:18:31.940 --> 00:18:36.500
What if you want to add some additional features? And that is where a very underrated
243
00:18:36.500 --> 00:18:38.340
gem in the R ecosystem,
244
00:18:39.380 --> 00:18:40.259
g...
245
00:18:40.580 --> 00:18:46.044
Oh, oh, she's got a pronunciation guide. I'm gonna be perfect here. It is pronounced giraffe.
246
00:18:46.205 --> 00:18:49.244
Apparently, that comes straight from the author's source himself.
247
00:18:49.485 --> 00:19:03.490
Thank you, Nikola Nikola, for putting that reference in the blog post. That makes me as a podcaster's life a lot easier, doesn't it, Mike? That's been a long standing question, floating question out there for us. Hey, you know what? I'm
248
00:19:03.490 --> 00:19:07.730
here for it. Thank you. Thank you. Now we will make sure we pronounce that correctly.
249
00:19:08.290 --> 00:19:13.410
And again, shout out to David Gohel. He is the author of Giraffe. It is an amazing package.
250
00:19:14.135 --> 00:19:17.495
So, in the blog post, she takes this static
251
00:19:17.495 --> 00:19:19.014
graph of the scatter plot
252
00:19:19.335 --> 00:19:20.054
and,
253
00:19:20.135 --> 00:19:20.934
first of all,
254
00:19:21.255 --> 00:19:23.335
just putting the foundation
255
00:19:23.335 --> 00:19:25.575
to make the plot interactive,
256
00:19:25.575 --> 00:19:27.174
where you get basically
257
00:19:27.590 --> 00:19:33.830
on the TIN a way to download that plot as a PNG or to make it full screen in your web browser.
258
00:19:33.910 --> 00:19:34.870
Simple enough.
259
00:19:35.030 --> 00:19:37.350
But like I said, what if you want to add a tooltip?
260
00:19:37.590 --> 00:19:39.510
That is a simple mapping
261
00:19:39.830 --> 00:19:46.234
or an AES functional way with tooltip based on the variable you want to put in the tooltip,
262
00:19:46.475 --> 00:19:54.075
and in the blog post, you can literally see it in action right there. If you want to hover your cursor over these points, you'll get the cut of these points.
263
00:19:54.970 --> 00:20:03.289
Let's take it even farther. Right? Some I did not give a lot of, you know, a thought to would be possible, but it absolutely is.
264
00:20:03.769 --> 00:20:05.769
You can combine Giraffe
265
00:20:05.769 --> 00:20:09.769
with some lower level in the R ecosystem of web development,
266
00:20:10.785 --> 00:20:11.985
input
267
00:20:11.985 --> 00:20:13.425
selector of sorts,
268
00:20:13.745 --> 00:20:15.105
not built with Shiny,
269
00:20:15.425 --> 00:20:17.665
but built with HTML tools,
270
00:20:17.905 --> 00:20:22.385
which Shiny uses under the hood to power a lot of, like, the select inputs,
271
00:20:22.465 --> 00:20:23.825
radio buttons, and the like,
272
00:20:24.400 --> 00:20:28.080
well, you can make a drop down menu with HTML tools
273
00:20:28.400 --> 00:20:32.320
quite easily with the use of the tags function
274
00:20:32.640 --> 00:20:36.640
and using the select function, which basically gives you that drop down,
275
00:20:37.675 --> 00:20:39.355
feed in dynamically
276
00:20:39.515 --> 00:20:48.715
the names of the various options you want to put in there, which you can print out in your console to verify the HTML is correct. And yes, even in this blog post, we got the
277
00:20:49.115 --> 00:20:51.275
dropdown of the different cuts
278
00:20:51.670 --> 00:20:56.390
right there, right there, you can select through, but then you can link that
279
00:20:56.630 --> 00:20:59.429
to the giraffe powered ggplot,
280
00:20:59.670 --> 00:21:01.830
which will change the data
281
00:21:02.150 --> 00:21:02.870
based on
282
00:21:04.805 --> 00:21:10.485
that action or that selection of the choice by hooking it with a different action you get
283
00:21:10.965 --> 00:21:13.445
with a little snippet of JavaScript,
284
00:21:13.445 --> 00:21:32.680
but she's got examples right here to make that happen. And again, I'm sure in today's day and age, you could get some easy help with your AI agent of choice to put that snippet in, and sure enough, in the blog post, I'm going through these different cuts and the the plot points are changing right on the fly.
285
00:21:33.505 --> 00:21:35.024
Absolutely perfect.
286
00:21:35.665 --> 00:21:39.025
So now you've got the plot, you've got interactive,
287
00:21:39.025 --> 00:21:41.425
you even got the little selector
288
00:21:41.425 --> 00:21:42.945
widget on top of it.
289
00:21:43.425 --> 00:21:49.745
Now let's package it all up, and maybe package is wrong choice of words, you want a document
290
00:21:49.660 --> 00:21:51.900
format of this. Well, naturally,
291
00:21:52.140 --> 00:21:54.140
for doing of interactive content,
292
00:21:54.380 --> 00:22:01.180
it's going to be an HTML document, that's where the Quarto engine comes into play because you can basically embed
293
00:22:01.455 --> 00:22:03.294
the code to make this plot
294
00:22:03.775 --> 00:22:05.695
into a Quarto doc.
295
00:22:05.855 --> 00:22:08.095
The one thing to watch out for,
296
00:22:08.654 --> 00:22:09.854
in Quarto,
297
00:22:10.335 --> 00:22:11.374
by default,
298
00:22:11.375 --> 00:22:13.054
it will not put,
299
00:22:13.215 --> 00:22:16.095
say, the underlying web dependencies
300
00:22:16.530 --> 00:22:18.610
in your document itself,
301
00:22:18.850 --> 00:22:27.010
it'll often put that as a separate directory that's being sourced when the user loads it. This has no issue when you're on, like, a deployed
302
00:22:27.250 --> 00:22:34.744
POSI Connect server to host portal docs or even a static site generator like GitHub Pages or GitLab Pages.
303
00:22:35.225 --> 00:22:39.065
But if we want to share this HTML file itself via email,
304
00:22:39.385 --> 00:22:40.984
it's got to be self
contained.
305
00:22:41.225 --> 00:22:44.184
So there is an option in the HTML format
306
00:22:44.560 --> 00:22:46.320
of embed resources
307
00:22:46.320 --> 00:22:48.720
of true. If you set that,
308
00:22:49.120 --> 00:22:52.960
then everything is in the HTML file
309
00:22:53.280 --> 00:22:58.880
that is encoded in, like, the headers and other CSS and other JavaScript bindings
310
00:22:59.120 --> 00:23:00.160
such that
311
00:23:00.615 --> 00:23:03.095
if I get this HTML file
312
00:23:03.255 --> 00:23:09.735
and I open it in my web browser as a local file, not going to, like, an online page, but going to a local file,
313
00:23:10.135 --> 00:23:16.620
it will just work. But if you don't do that embed option, you'll get a bunch of, like, missing errors and what not. Your
314
00:23:17.100 --> 00:23:19.100
collab will be like, what the heck is this?
315
00:23:19.660 --> 00:23:28.059
They'll be mad at you. But with this, they won't be mad at you, and it gives you an easy way to have these interactive visuals
316
00:23:28.460 --> 00:23:30.940
just sent via the tried and true email
317
00:23:31.215 --> 00:23:34.335
when you don't have the luxury of a POSI Connect deployment
318
00:23:34.335 --> 00:23:36.815
or GitHub Pages to deploy to.
319
00:23:37.054 --> 00:23:41.455
This is a really quick way to quickly share it with somebody in an email,
320
00:23:41.615 --> 00:23:46.929
in a Teams chat, or whatever instant message client of choice so you can get on with your day.
321
00:23:47.250 --> 00:23:49.330
Another practical tutorial
322
00:23:49.409 --> 00:24:00.874
that many in the industry will definitely resonate with across the board. Always something very practical to take away from a Nicole Orenny blog post, and this is certainly no exception.
323
00:24:01.275 --> 00:24:05.835
I love the walk through here. Love the use of the giraffe package
324
00:24:06.075 --> 00:24:09.434
as well and kind of this simple example demonstrating,
325
00:24:09.434 --> 00:24:16.490
you know, the ability to package up everything, as you mentioned, Derek, into a single HTML file that you can share, not just with the interactive
326
00:24:16.490 --> 00:24:17.290
chart,
327
00:24:17.290 --> 00:24:23.369
but with also that little dropdown, which I think is, you know, may seem like something small, but that does introduce
328
00:24:23.530 --> 00:24:27.770
some, a fair amount of complexity as well. I think if you didn't have
329
00:24:27.945 --> 00:24:35.544
that that drop down, it would be a little bit more straightforward to just package up that interactive chart, alright, in the first place.
330
00:24:36.105 --> 00:24:38.024
Yeah. That embed resources,
331
00:24:38.105 --> 00:24:54.559
true flag, that is always a gotcha. If I can reemphasize that in this blog post, that'd be the one thing I'd reemphasize to make sure that when you do finally send that HTML file to somebody else, that it will actually work for them and and not just work on your machine because you have those additional files,
332
00:24:54.720 --> 00:24:55.280
nearby
333
00:24:55.595 --> 00:24:59.755
in that same directory that are needed when you click on that HTML file.
334
00:25:00.315 --> 00:25:06.075
I don't know. You know, this seems a lot more complicated than just sharing my shiny app local host eighty eighty URL
335
00:25:06.075 --> 00:25:07.275
link to a colleague.
336
00:25:08.860 --> 00:25:13.499
But you know, to each their own. I'm just I'm just kidding but I have received a few.
337
00:25:14.059 --> 00:25:24.835
Emails saying, you know, hey, I got my app running over here. Local host, thirty eight thirty eight. Check it out. I I can't check it out. Sorry. That's just your computer. But this...
338
00:25:25.155 --> 00:25:29.794
Not to rant. This this reminds me of of Quarto dashboards a bit as well. Yes.
339
00:25:30.275 --> 00:25:42.750
Though if you do use the shiny package in Quarto dashboards, you'll still need a non static server. Exactly. But one thing that I've played around with in the past and and loved and admittedly have gotten away from it is observable JS,
340
00:25:43.870 --> 00:25:47.550
Quarto has native support for. You can just add an OJS
341
00:25:47.550 --> 00:25:53.744
chunk. You can also pass objects between, you know, a Python or R chunk to OJS
342
00:25:53.825 --> 00:25:54.865
pretty easily.
343
00:25:55.265 --> 00:25:57.985
And it's very similar to what Nicole is doing here.
344
00:25:58.225 --> 00:26:02.385
Maybe also avoids you needing to deal with the HTML tools package at all,
345
00:26:03.130 --> 00:26:07.929
involves learning a bit of OJS syntax, which is, again, very easy.
346
00:26:08.410 --> 00:26:17.044
And also, you know, allows you to have charts that have maybe select boxes that are, you know, dynamically render what's on the chart, drop downs,
347
00:26:17.205 --> 00:26:26.725
fairly simple filtering, but in a lot of cases, enough for sharing with somebody else. And again, you could use a Quarto document there with embed resources is true.
348
00:26:27.285 --> 00:26:28.725
And I think accomplish kind of
349
00:26:29.490 --> 00:26:31.889
that same goal through OJS.
350
00:26:31.970 --> 00:26:32.370
So,
351
00:26:32.850 --> 00:26:48.395
again, you know, a few options out there. This is a fantastic one that Nicole runs us through. And I think, you know, something that I hadn't necessarily seen pointed out in the past. So really appreciate her taking the time to walk us through this. Yeah. Talking about you giving me flashbacks
352
00:26:48.635 --> 00:26:57.435
in my early, early days of Shiny and as I was, administering the Shiny server open source edition in the company company walls,
353
00:26:58.220 --> 00:26:59.740
and I would tell people,
354
00:27:00.060 --> 00:27:01.260
hey, guess what?
355
00:27:01.500 --> 00:27:03.580
You built that great Shiny app.
356
00:27:03.900 --> 00:27:15.595
Stop sending those localhost URLs deployed on the Shiny server. That's how people can actually see it.
It took a bit of time for people to learn that and, you know, that's a good been there.
357
00:27:16.075 --> 00:27:16.955
Yep. So,
358
00:27:17.195 --> 00:27:21.435
yeah, good good memories on that one. But, yeah, it it is interesting.
359
00:27:22.309 --> 00:27:27.510
There are a lot of movements to go, quote unquote, serverless with a lot of web resources,
360
00:27:27.510 --> 00:27:31.429
so it's great to see that we got a bunch of options here
361
00:27:31.669 --> 00:27:42.095
that really take advantage of these humble little web browsers that most of us take for granted as just, hey. I'm going to Google to search or something, or I'm gonna check my email or something.
362
00:27:42.415 --> 00:27:49.375
They really are like many computers under the hood. When you start diving into, like, your web tools, developer console,
363
00:27:49.615 --> 00:27:53.940
you'll see all sorts of things happening on what we call the client side
364
00:27:54.179 --> 00:27:57.059
that really are hugely powerful.
365
00:27:57.299 --> 00:28:12.975
Of course, there will be people that say that JavaScript is just like everywhere too much, but at the same time, you can't discount the fact that when you get capabilities like this, it is quite powerful, and I think there's a use case for everything. So even with the observable JS,
366
00:28:13.135 --> 00:28:15.375
you know, integration with Quartal that you mentioned,
367
00:28:15.855 --> 00:28:22.270
for my other hat that I wear with the submissions working group, I have in my Quartal site for that working
368
00:28:22.270 --> 00:28:23.230
group itself
369
00:28:23.470 --> 00:28:26.830
a meeting minutes kind of template generator
370
00:28:26.990 --> 00:28:30.510
where I do have an observable JS block to choose
371
00:28:31.155 --> 00:28:36.434
from a list of attendees and update a draft of the courtal doc on the fly.
372
00:28:36.995 --> 00:28:44.835
I, that was super geeky. I'm the only one that really uses it, but it was a good excuse to learn what you can do with observable JS. So I,
373
00:28:45.720 --> 00:28:48.360
greatly appreciate playing with that tech.
374
00:28:48.600 --> 00:28:54.600
And yes, if that scares you a bit, don't worry, you got an agent to help you with a lot of that stuff, and it will
375
00:28:55.640 --> 00:28:59.734
definitely, you know, give you a lot of lens into what's powerful. So, again,
376
00:29:00.054 --> 00:29:04.774
as always, Nikola does a tremendous job with the blog posts, all the examples,
377
00:29:05.174 --> 00:29:06.375
and everything in between.
378
00:29:20.750 --> 00:29:23.309
And rounding out our highlights today,
379
00:29:23.950 --> 00:29:31.434
we're gonna stay on the visualization corner of sorts, and we're gonna give a nice set of kudos and some thoughts on
380
00:29:31.835 --> 00:29:34.555
a awesome workshop that was recently,
381
00:29:34.715 --> 00:29:35.434
shared
382
00:29:35.675 --> 00:29:36.554
with the
383
00:29:36.795 --> 00:29:41.435
main R user group. Great state. Great state. Absolutely. And
384
00:29:41.910 --> 00:29:42.630
And this
385
00:29:43.350 --> 00:29:46.070
workshop that was held virtually
386
00:29:46.390 --> 00:29:50.790
was led by another key thought leader in the world of visualization,
387
00:29:51.270 --> 00:29:52.470
Kara Thompson,
388
00:29:52.470 --> 00:29:55.750
who runs her own consulting for visualization.
389
00:29:56.495 --> 00:29:59.535
And this workshop was held, I believe, in October,
390
00:30:00.095 --> 00:30:01.135
which tackles
391
00:30:01.135 --> 00:30:03.375
a lot of the planning
392
00:30:03.775 --> 00:30:06.335
and the principles that you should have
393
00:30:06.575 --> 00:30:09.775
as you're thinking about not just building that visualization,
394
00:30:10.480 --> 00:30:13.839
but communicating that with your intended audience.
395
00:30:14.000 --> 00:30:15.359
Full disclosure,
396
00:30:15.360 --> 00:30:18.559
at the time of this recording, when this blog post was shared,
397
00:30:18.960 --> 00:30:30.715
I do not have access to the actual recording of the workshop, so I am going by what I've seen on the slides that have been embedded in this post along with the resources that have been shared in
398
00:30:31.195 --> 00:30:33.115
the tail end of the blog post.
399
00:30:33.355 --> 00:30:36.155
But some principles that I see here that I think
400
00:30:36.810 --> 00:30:43.130
in the world of visualization are a must when you are building these for not just yourself,
401
00:30:43.930 --> 00:30:46.090
are really thinking about
402
00:30:46.490 --> 00:30:48.010
what questions
403
00:30:48.410 --> 00:30:50.570
are going to be prudent
404
00:30:50.730 --> 00:30:52.090
to the end user
405
00:30:52.745 --> 00:30:54.585
of these visualizations,
406
00:30:54.585 --> 00:30:55.625
and sometimes
407
00:30:56.185 --> 00:30:57.865
it's hard to know
408
00:30:58.745 --> 00:31:01.065
what those what those should be.
409
00:31:01.545 --> 00:31:05.945
So it's one thing to jump into, hey. You got your data and then here.
410
00:31:06.450 --> 00:31:12.690
If you're a fan of penguins, you'll love these workshop slides because it's the Palmer penguins dataset all the time with,
411
00:31:13.169 --> 00:31:18.609
with, awesome GIFs of penguins. So, awesome job, Kara. Love the visuals there.
412
00:31:19.169 --> 00:31:21.250
But as you look at your data,
413
00:31:21.915 --> 00:31:29.275
think about, for someone new to that data, what kind of questions they might ask. She's got a few examples here of, like,
414
00:31:29.755 --> 00:31:34.795
what island is most prevalent with the penguins, you know, populating them.
415
00:31:35.419 --> 00:31:40.619
Are there weird features of their bodies such as, like, maybe their beak dimension?
416
00:31:41.260 --> 00:31:45.580
What about, you know, certain types of penguins? How prevalent are they?
417
00:31:46.220 --> 00:31:47.820
And you use that
418
00:31:48.784 --> 00:31:50.544
to figure out, okay,
419
00:31:50.865 --> 00:31:55.104
how do
those questions map to different aesthetics in your plot?
420
00:31:55.345 --> 00:31:58.784
What should you use as legend items? What should you differentiate
421
00:31:59.424 --> 00:32:00.144
by
422
00:32:00.304 --> 00:32:00.865
colors?
423
00:32:01.669 --> 00:32:04.710
Maybe there's things you have to do for the axes,
424
00:32:04.710 --> 00:32:06.869
where regions you're zooming in on.
425
00:32:07.350 --> 00:32:10.389
What is the size of the points you want to consider?
426
00:32:10.789 --> 00:32:12.950
And throughout it, and much like the
427
00:32:13.750 --> 00:32:20.044
technique that was pioneered years and years ago, like that g g plot flipbook kind of paradigm.
428
00:32:20.365 --> 00:32:26.604
In the slides, as you navigate through the examples, she highlights different portions of the code to see
429
00:32:27.005 --> 00:32:30.845
what impact that has on the plot in a layer by layer fashion.
430
00:32:31.630 --> 00:32:32.750
GGPlot2,
431
00:32:32.750 --> 00:32:37.869
when you build plots, it is very much like layering a cake, if you will, or a recipe.
432
00:32:38.190 --> 00:32:42.269
You build and build and build until you get to the point you need.
433
00:32:42.669 --> 00:32:46.030
So it's all about finding the right colors that are
434
00:32:46.495 --> 00:32:48.894
tailored to maybe the data at hand,
435
00:32:49.294 --> 00:32:52.734
but not just, you know, finding some fun color palettes,
436
00:32:53.135 --> 00:32:55.695
checking that they meet accessibility
437
00:32:55.695 --> 00:33:00.495
requirements because you want to make this as visually consumable
438
00:33:00.660 --> 00:33:02.340
for all audiences.
439
00:33:02.660 --> 00:33:06.020
So she's got links to different, resources
440
00:33:06.260 --> 00:33:07.380
to check
441
00:33:07.460 --> 00:33:08.900
the differentiation
442
00:33:08.900 --> 00:33:10.179
between colors
443
00:33:10.500 --> 00:33:14.820
as well as making sure that they are accessible to different
444
00:33:15.485 --> 00:33:18.445
perspectives, such as like from the monochrome perspective.
445
00:33:18.605 --> 00:33:22.125
Definitely check those links out at the end of the post here.
446
00:33:22.525 --> 00:33:25.805
But yeah, it's a great mix of both scatter plots,
447
00:33:26.925 --> 00:33:29.645
kind of like hybrid box plot, density plots,
448
00:33:30.830 --> 00:33:32.269
ways you can tailor
449
00:33:32.590 --> 00:33:34.030
the titles,
450
00:33:34.030 --> 00:33:35.870
the subtitles to meet
451
00:33:36.430 --> 00:33:38.269
the needs of it, and really
452
00:33:38.670 --> 00:33:41.789
having a cohesive brand, a cohesive,
453
00:33:41.950 --> 00:33:43.550
you might say, paradigm
454
00:33:44.095 --> 00:33:47.055
for how everything looks when put together
455
00:33:47.295 --> 00:33:49.775
as you go from one visual to another,
456
00:33:50.335 --> 00:33:53.215
feeling like you're still in the same experience.
457
00:33:53.695 --> 00:33:58.095
So there is a lot of code that you can you can choose
458
00:33:58.470 --> 00:34:02.470
to play with on your own, but I love the layered approach.
459
00:34:02.790 --> 00:34:06.149
I love the principles of starting with those questions
460
00:34:06.550 --> 00:34:09.750
and then really figuring out which aesthetics
461
00:34:09.910 --> 00:34:11.430
tailor to those needs.
462
00:34:12.145 --> 00:34:21.025
So, I can't wait for the recording to go out there. I will put that in my media server to watch that next time I'm getting ready for a visualization task.
463
00:34:21.185 --> 00:34:22.625
The slides are excellent.
464
00:34:22.865 --> 00:34:28.560
And as I said, it's not just about what you think a visualization is appealing as,
465
00:34:28.800 --> 00:34:31.840
it's what do you, what is the intended audience
466
00:34:32.000 --> 00:34:34.960
and what are the key questions that you should be
467
00:34:35.200 --> 00:34:36.080
asking
468
00:34:36.494 --> 00:34:37.855
and answering
469
00:34:38.255 --> 00:34:46.494
with the features that come standard in ggPod two and say the vast extension ecosystem on top of that? Yeah. Absolutely.
470
00:34:46.815 --> 00:34:58.829
You know, I see so many best practices here in the slides and in full code snippet that is at the bottom of this blog post, which is I think the final result that Kara puts together.
471
00:34:58.910 --> 00:35:02.990
One of my favorite things that she does is she spends a lot of time on theme,
472
00:35:03.309 --> 00:35:03.950
and
473
00:35:04.589 --> 00:35:06.990
so much so that she actually extracts
474
00:35:07.244 --> 00:35:11.325
the ggplot theme that she uses into its own function,
475
00:35:11.805 --> 00:35:18.125
which I I really love because then when you look at the rest of the ggplot code, it's pretty easy to digest
476
00:35:18.285 --> 00:35:23.800
as opposed to having to look at, you know, a very, very long set of code where you're kind of identifying
477
00:35:23.800 --> 00:35:26.600
right columns and different variables that you're passing,
478
00:35:27.000 --> 00:35:34.200
intercepts and things like that, and mixing that in with the actual theming elements, is kind of the opposite side of the brain.
479
00:35:34.765 --> 00:35:41.085
And when you take a look at the theme, it might look like a lot. But this is really the thing that makes this ggplot
480
00:35:41.085 --> 00:35:47.485
plot not look like ggplot. And Eric, you and I talk about all the time trying to make shiny apps that don't look like shiny apps. And this is
481
00:35:47.885 --> 00:36:04.730
a fantastic case of making a gg plot that doesn't look like a GG plot. There's so much to learn here even just from this one plot that she puts together. I mean, we have a a little annotation up in the top right hand corner that's perfectly placed. It's got an emoji in it and it it looks like, you know, somebody made a meme
482
00:36:05.275 --> 00:36:12.635
you know, with the snipping tool or or Photoshop or something like that. But no, it's it's all g g plot all the time. It's
fantastic.
483
00:36:12.875 --> 00:36:23.660
The the way that the g g text package, think, is used to do a lot of this annotation and handling this text and just making it making it really, really pretty. So a a lot to learn here,
484
00:36:23.980 --> 00:36:28.460
from the slides, the blog post, and hopefully, eventually, as you mentioned, Eric, that recording.
485
00:36:29.180 --> 00:36:31.420
Yeah. It... It's amazing,
486
00:36:31.500 --> 00:36:34.300
amazing how far the ecosystem has come
487
00:36:34.625 --> 00:36:36.385
in the world of visualization,
488
00:36:36.545 --> 00:36:39.105
which, as you've got to, is that foundational layer.
489
00:36:39.744 --> 00:36:40.225
And
490
00:36:41.345 --> 00:36:44.865
it's great to see, I'm glad you called it the theme thing because
491
00:36:45.505 --> 00:36:51.320
I remember wrestling that head on in a day job project years and years ago that I affectionately,
492
00:36:51.559 --> 00:36:55.720
maybe not so affectionately, coined as the glorified PowerPoint maker,
493
00:36:55.960 --> 00:36:58.280
where I did need to adhere to
494
00:36:59.055 --> 00:37:03.454
a very, and I do mean a very rigid brand guideline
495
00:37:03.454 --> 00:37:05.135
for that given asset
496
00:37:05.135 --> 00:37:08.175
that given, you know, that they use for communications.
497
00:37:08.734 --> 00:37:10.175
It was painful.
498
00:37:10.494 --> 00:37:15.500
But once I figured out the fact that, hey, with these themes, I can either, a,
499
00:37:15.740 --> 00:37:21.260
take an existing theme, maybe add a little bit, or just make my own theme completely custom.
500
00:37:21.660 --> 00:37:28.619
But not just make it custom and then copy paste the darn thing in every g g p two call I make, but to make it one utility function
501
00:37:29.105 --> 00:37:33.744
with the default set as they are and only have to change maybe one or two for a given type,
502
00:37:34.145 --> 00:37:36.625
that code was so much easier to review
503
00:37:36.865 --> 00:37:42.145
and to collaborate on with the key SMEs that were consuming these slides
504
00:37:43.730 --> 00:37:48.130
and making sure that it was on point with the brand. If I had to change it,
505
00:37:48.450 --> 00:38:01.815
I only had to change it in one place instead of like around five or six different plots or maybe 50 or 60 plots, depending on how far they took my humble little app. So the principles that you learn, even if you feel like, oh, in visualization,
506
00:38:01.815 --> 00:38:03.335
it's very much kind of a
507
00:38:03.575 --> 00:38:06.135
creative process, and, yeah, it is creative,
508
00:38:06.375 --> 00:38:09.255
but you can still have good programming practices
509
00:38:09.415 --> 00:38:11.815
to make it as easily maintainable
510
00:38:12.030 --> 00:38:14.990
and as easy to collaborate with as possible.
511
00:38:15.230 --> 00:38:17.790
So I think it's great that ggplot2,
512
00:38:18.030 --> 00:38:20.590
in its vast array of ecosystem,
513
00:38:20.750 --> 00:38:24.190
still has ways for you to follow those principles
514
00:38:24.525 --> 00:38:26.845
and, in this case, have a really
515
00:38:27.005 --> 00:38:28.845
polished plot afterwards
516
00:38:29.085 --> 00:38:33.725
that if I didn't know this was an r based post and I only saw that end product,
517
00:38:34.365 --> 00:38:46.270
I would not be able to tell the CGI plot to. I simply wouldn't. It is that good. Absolutely. No. I agree. And I do remember a lot of pre show conversations about your PowerPoint generator app, Eric. Fortunately,
518
00:38:46.829 --> 00:38:49.310
I think it has been softly
519
00:38:49.310 --> 00:38:50.110
retired.
520
00:38:50.190 --> 00:38:51.550
Hopefully, the people that,
521
00:38:52.030 --> 00:39:01.255
you know, we'll leave it at that. Because I like making slides in different formats, folks, and I think you know what ones they are because they are web based formats. That is my passion,
522
00:39:01.575 --> 00:39:15.320
just like everything on the web now. Right? And what else is on the web? Well, it's not like you get rweekly in the mail, although that would be kind of fun. You get it as a web page you can go to every single week whenever you want, however you want, mobile,
523
00:39:15.559 --> 00:39:22.435
desktop, it doesn't matter. We got a great interface for you to look at. All of the additional resources in this issue
524
00:39:22.675 --> 00:39:25.235
on top of the highlights that we have here.
525
00:39:25.635 --> 00:39:30.195
Lots of great tidbits here. I see even, you know, on time to cover all of it today,
526
00:39:30.355 --> 00:39:40.240
but a nice roundup of some hidden gem of r functions that you may take for granted both in base R as well as the the very vast R ecosystem.
527
00:39:40.640 --> 00:39:47.280
And even for all of you, basketball fans out there, some great looking at how FiveThirtyEight
528
00:39:47.520 --> 00:39:51.760
is, doing some of their NBA probability
529
00:39:50.575 --> 00:39:51.615
visualization
530
00:39:51.615 --> 00:39:57.935
and summaries. So cool stuff there for the basketball fans now that NBA is back up and running.
531
00:39:58.255 --> 00:40:02.735
But, we got a lot more in the issue as well as always, and also
532
00:40:02.975 --> 00:40:06.095
where do you find it? It is at rweekly.org.
533
00:40:06.050 --> 00:40:08.850
That is where you go for everything related to rweekly,
534
00:40:09.410 --> 00:40:11.250
including how to do a poll request.
535
00:40:11.810 --> 00:40:22.575
Yes. Yes. I have not made that friendly app yet for a poll request, but I am gonna speak it into existence until I get there. But until then, you can just hit the little octo can in the upper right corner,
536
00:40:22.975 --> 00:40:25.855
and that is where if you want to share that great new resource,
537
00:40:26.015 --> 00:40:29.855
that great new blog post, whether from you or someone else that you found,
538
00:40:30.415 --> 00:40:37.590
we are just a poll request away. So hit that and
you will be sure to get that into into the, into the issue as well.
539
00:40:38.230 --> 00:40:43.750
And, also, we love to get in touch with all of you, and if you have feedback about the show,
540
00:40:44.070 --> 00:40:53.235
we have a feedback form. Did not get any email or feedback about the Mr. Unhinged over here, so I still have a podcasting job apparently.
541
00:40:53.795 --> 00:41:04.380
But if you do have other messages you want to send us our way, go to that contact page and you'll... In the show notes, and you'll be able to send that to us as well as getting in touch with us on social media, which is
542
00:41:04.700 --> 00:41:05.820
for me it's
543
00:41:06.060 --> 00:41:06.860
bluesky
544
00:41:06.860 --> 00:41:10.060
where I'm rpodcastbsky.social.
545
00:41:10.300 --> 00:41:15.660
I'm on Mastodon where I'm rpodcastspodcastindex.social,
546
00:41:15.660 --> 00:41:16.460
and I'm on LinkedIn.
547
00:41:16.974 --> 00:41:18.895
Search my name and you'll find me there.
548
00:41:19.295 --> 00:41:26.655
And Mike, before we get to your social handles, I know you wanna say a very important, word out there before we close out here. Yeah.
549
00:41:27.214 --> 00:41:30.175
I lost a really close friend who was a
550
00:41:30.494 --> 00:41:33.619
member of the R community as well, Brad Lindblad,
551
00:41:33.859 --> 00:41:36.500
this this past week after his second battle
552
00:41:36.740 --> 00:41:38.579
with cancer and
553
00:41:39.619 --> 00:41:40.339
I
554
00:41:41.299 --> 00:41:46.660
Brad was the author of some great R packages out there. Probably most famously the the Shrew package
555
00:41:47.105 --> 00:41:50.944
which he published for R, Python, and Julia and
556
00:41:50.944 --> 00:41:59.710
I think it was used in Tidy Tuesday and and some other things for text mining. It contains the whole transcript from the office and a lot of my and relationship
557
00:41:59.710 --> 00:42:03.550
revolved around the intersection of programming and and the office which
558
00:42:03.870 --> 00:42:15.705
probably lends itself to to his personality which was fantastic and he was a big mentor of mine. Really taught me everything that I ever knew about, you know, software development, best practices, and,
559
00:42:16.105 --> 00:42:16.985
getting
560
00:42:16.985 --> 00:42:21.865
me over from Basar to the Tidyverse in the in the early days of my R education,
561
00:42:22.345 --> 00:42:27.940
and he was a mentor to to a lot of other people as well. So, if you feel so inclined,
562
00:42:28.260 --> 00:42:38.740
there's a couple ways to support his family as they they navigate his loss that will put in the show notes but thanks for giving me a minute to to share that there but
563
00:42:38.355 --> 00:42:52.994
if you want to get in touch with me personally on social media, you can find me on LinkedIn. Probably best if you search Catchbrooke Analytics, k e t c h b r o o k. You can see what I'm up to. Or on blue sky, mike dash thomas dot b s k y dot social.
564
00:42:53.520 --> 00:42:56.080
Awesome. Thank you so much, Mike, and, yeah,
565
00:42:56.400 --> 00:42:59.200
our sincere condolences to Brad's family.
566
00:42:59.600 --> 00:43:04.640
It is always, difficult when you you lose some of your
567
00:43:04.880 --> 00:43:09.995
heroes, your mentors, and those that have impacted the community greatly. Yeah, I definitely
568
00:43:10.155 --> 00:43:20.155
sympathize with that. So sending all the good vibes and the best wishes to Brad's family and also in the general world. We also lost
569
00:43:20.570 --> 00:43:21.610
a legendary,
570
00:43:22.250 --> 00:43:26.330
actor that a lot of us on the geeky side had high value with.
571
00:43:26.890 --> 00:43:38.645
Make it so, Patrick Stewart. We miss you, buddy. Yeah. Well, with that, we hope that you have a wonderful weekend. We, again, thank you so much for listening to episode 247
572
00:43:38.645 --> 00:43:40.245
of our weekly highlights,
573
00:43:40.325 --> 00:43:44.245
and we'll be back with another edition of our weekly highlights
574
00:43:44.245 --> 00:43:44.885
next week.