Gotten lots of request for this #rstats blogpost:

"Creating and using custom #ggplot2 themes"

- Theme components/elements
- Building your own theme
- Inspiration from @FiveThirtyEight
- 6 Different examples of using the theme
- Full code to reproduce

themockup.blog/posts/2020-12-…
There are two primary ways I've built #rstats ggplot themes:
- theme() - Add theme components individually, wrap as a function
- %+replace% - Apply an existing theme and overwriting components of it
Inspiration comes from a @FiveThirtyEight article from @tyschalter :

fivethirtyeight.com/features/the-i…

We will "steal like an artist" by getting at the raw data, recreating their example, and build upon some ideas in this article to create a novel plot.
In total we cover 6 different applications of the new #ggplot2 / #rstats theme we've created using public data.

Full code and examples included to create plots like below!
Don't care about R code?

Here's a game tape/scouting look at the plays behind the Colts ability to creatively generate pressure without blitzing.

stampedeblue.com/2020/12/11/221…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Tom Mock

Tom Mock Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @thomas_mock

8 Sep
1/9

In case you missed it over the long weekend, I put together 45 examples of best practices for building tables in #rstats w/ {gt}!

This includes:
- Example tables (good vs bad)
- Reproducible code for ALL tables
- Links to other resources

themockup.blog/posts/2020-09-…
2/9

@jschwabish put together his "10 Guidelines for tables", which I've adapted to {gt} + #rstats with "good" and "bad" examples.

3/9

Furthermore, Stephen Few indicates WHEN to use a table vs a graph. #RStats Table that says to use tables when you need to look up or co
Read 9 tweets
27 Jul
I spent the weekend putting together a "Meta RMarkdown" blog post!

4 R Markdown Strategies:

1 - Literate Programming
2 - Data Product
3 - Control Document
4 - Template

themockup.blog/posts/2020-07-…

#rstats #datascience #tidyverse
1 - Literate Programming

Use RMarkdown like a reproducible scientific notebook, capturing code, comments, and specific outputs in a output document.

All in plain text that is easily human-readable in version control!
2 - Data Product

Generate all sorts of fancy outputs from RMarkdown, such as:
- Presentations (Powerpoint or web native like remark.js)
- Dashboards w/ flexdashboards
- Reports as HTML, PDF, Word, etc
- Entire websites w/ blogdown, hugodown, distill
Read 6 tweets
17 Jan
@KTorresStats Hi Katy!

The resume looks good to me!

I'm starting a thread with some ideas.

Goal 1: Connect with #rstats data science community
- Tons of academic and industry here on Twitter
- do informational interviews with acquaintances
- join @RLadiesGlobal Slack @R4DScommunity
@KTorresStats @RLadiesGlobal @R4DScommunity Goal here is to meet someone who can get your name to a hiring manager
- referrals == stronger chance of interview/hire
- R4DS and #rladies Slack are places outside Twitter to find job posts, ask questions, network
- Info interviews help you understand what pro DS do/expect
@KTorresStats @RLadiesGlobal @R4DScommunity Goal #2: read livebook.manning.com/book/build-you…

By @robinson_es and @skyetetra

Tons of good ideas and biggest additional step IMO == get a public portfolio

Essentially show the industry that you can do the job already!
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!