MTBee R Language
banner
mtbee-r-language.bsky.social
MTBee R Language
@mtbee-r-language.bsky.social
Cataloging my tips, tricks, traps discovered in my learning the R language
R for Data Analysis Chapter 8 the histogram example...

First as a 'qplot' set of graphics:
simp.ly/p/DCcg6L

Second as a 'ggplot' set(I used Google Gemini to convert):
simp.ly/p/9WfBjT
November 27, 2025 at 2:37 AM
.ggplot.R # replicate qplot theme...
+theme( panel.background=element_rect(fill='grey90',color=NA)
,plot.background=element_rect(fill='white',color=NA)
,panel.grid.major=element_line(color="grey95")
,panel.grid.minor=element_line(color="grey95")
,legend.key=element_rect(fill="grey90",color=NA))
November 25, 2025 at 6:25 AM
There's a drop down list on the "source" button in RStudio I choose the "source with echo" option!
October 30, 2025 at 2:55 AM
Hey, check out this event: Posit Monthly Workflow Demos on 07/30/2025 @10:00(CDT), interested? events.zoom.us/ev/Ajss5j9Ve...
Posit Workflow Demo
events.zoom.us
October 28, 2025 at 10:51 PM
glimpse displays data vertically vs horizontally
October 27, 2025 at 12:06 AM
The datanovia.com webr console is pretty slick!
Like rdrr.io - this will run your code directly in it's console - or you can upload / run an R script.
October 25, 2025 at 6:51 AM
rdrr.io is pretty clever!
October 25, 2025 at 5:56 AM
I think I needed a tutorial on the R tutorial! I had a very difficult time getting 'filter' function working...here's what it looks like for me.
October 23, 2025 at 4:38 PM
Link to 'R for Data Science' _2nd Edition_

r4ds.hadley.nz/preface-2e.h...
Preface to the second edition – R for Data Science (2e)
r4ds.hadley.nz
October 23, 2025 at 4:00 AM
Example use of R package commands - and how to check 'library loaded' in 'package' tab in R Studio...
October 23, 2025 at 1:47 AM
Making a 'mylib' path.
1) Open terminal
2) Went to /home/michaeltbee/R
2) Did a mkdir 'mylib' - then...
3) Executed in console...

.libPaths(c("/home/michaeltbee/R/mylib"),.libPaths())

...now when I install.packages it should go there. :)
October 23, 2025 at 1:23 AM
Automated Data Collection with R
Ch 1 (Updated)...

drive.proton.me/urls/JEMYEPE...
Proton Drive
Securely store, share, and access your important files and photos. Anytime, anywhere.
drive.proton.me
October 15, 2025 at 12:00 AM
The next book I'm starting:

Automated Data Collection With R

...it's in my Kindle library from _2016_
(when it was only $45 - in 2025 it's $70+)
October 10, 2025 at 7:45 AM
Has anyone made a project with this?

en.wikipedia.org/wiki/DBpedia
DBpedia - Wikipedia
en.wikipedia.org
September 30, 2025 at 11:22 PM
In the last script I'd used 'labs(caption...' as a plot identifier.
of the form 'rpt:nnn ~ rpttitle'
September 26, 2025 at 4:47 AM
Done with 'R for Data Analysis'! Learned lots stepping through last chapter exercises(primarily reuse of script within variables). The book sample script was obfuscated / repetitious.

I recommend you download/try mine:
drive.proton.me/urls/ZTX5BXQ...
Data:
drive.proton.me/urls/ZZ87XME...
Proton Drive
Securely store, share, and access your important files and photos. Anytime, anywhere.
drive.proton.me
September 25, 2025 at 9:18 PM
R for Data Analysis
Chapter 10 Plotting Perfection...

Refactored all of ch 10 scripts into two download...

This R Script
Share 10.01.MultiplePlots.R
drive.proton.me/urls/ZTX5BXQ...

...and it's data
Share DataSet-Hurricanes.csv
drive.proton.me/urls/ZZ87XME...
Proton Drive
Securely store, share, and access your important files and photos. Anytime, anywhere.
drive.proton.me
September 25, 2025 at 2:37 AM
Solution on left using geom_line(linetype...linewidth...) - get's rid of the warning on the right for geom_line(size...)
September 23, 2025 at 1:54 AM
Example vimrc and Session.vim
-
Incorporate the contents of example_vimrc in your own ~/.vimrc file
If you wish to edit / review all scripts from chapter 9 in vim
try 'vim -S Session.vim'
-
example_vimrc
drive.proton.me/urls/R2DT12T...

Session.vim
drive.proton.me/urls/DG1VHXN...
September 22, 2025 at 3:54 AM
Complete scripts, sample results for
R for Data Analysis - chapter 09...

Share 09.StoryTellingWithData.tar.gz
drive.proton.me/urls/6BW3W6F...

Share 09.StoryTellingWithData.zip
drive.proton.me/urls/TE1NE5A...
Proton Drive
Securely store, share, and access your important files and photos. Anytime, anywhere.
drive.proton.me
September 22, 2025 at 2:43 AM
From 'R for Data Analysis' - last script of ch9...

My 1st attempt at the script (needs to be compared against book)

Share 09.06.Themes.R
drive.proton.me/urls/E277PW8...

Share DataSet-ProfSalaries.csv
drive.proton.me/urls/Z37VJ6A...

Share 09.06.Themes.R.1.Rplot.png
drive.proton.me/urls/3PW80MG...
September 20, 2025 at 3:30 AM
Refactor of 09.04.Facets.R uses scales package
and a custom function* = xfrms 1000 -> 1k
09.04.02.Facets.R
drive.proton.me/urls/E8FWPS9...
...Facets.R.1.Rplot.png
drive.proton.me/urls/WSJR63C...
DataSet-ProfSalaries.csv
drive.proton.me/urls/Z37VJ6A...
* kudos
www.r-bloggers.com/2019/01/usin...
September 19, 2025 at 10:41 PM
09.05.Coordinates downloads...
Link to R script:
drive.proton.me/urls/GM2T99X...
Link to Rplot results #1:
drive.proton.me/urls/9D1DZDX...
Link to Rplot results #2;
drive.proton.me/urls/1ZFSPGG...
Proton Drive
Securely store, share, and access your important files and photos. Anytime, anywhere.
drive.proton.me
September 19, 2025 at 4:00 PM
Example plots from 09.03.Statistics.R
September 18, 2025 at 10:57 PM
September 18, 2025 at 9:51 PM