Skip to content

Commit 27a51cd

Browse files
Merge pull request #23 from MitchellHarrison/pokemon
pokedex article render
2 parents 877ac93 + 82269d4 commit 27a51cd

47 files changed

Lines changed: 10403 additions & 7621 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"hash": "c4f76cdb8330cea42d6ee87c979f560a",
3+
"result": {
4+
"engine": "knitr",
5+
"markdown": "---\ntitle: \"Posit::Conf 2023\"\nauthor: \"Mitch Harrison\"\ncategories:\n - \"Data Viz\"\n - \"TidyTuesday\"\ndate: \"January 14, 2025\"\nimage: \"../../images/thumbnails/projects/tidytuesday/01142025.png\"\nexecute: \n warning: false\n message: false\n---\n\n::: {.cell}\n\n:::\n\n\n\n\n\n\n# The Viz\n\nHello all! This week's \n[TidyTuesday](https://github.com/rfordatascience/tidytuesday/blob/main/data/2025/2025-01-14/readme.md)\nbrings us the event schedule from the posit::conf events of 2023 and 2024.\nAlthough there isn't always much in the way of data analysis that we can do with\na simple list of conference events, I did find a phenomenon that amused me.\n\nAt the conference, there are three types of talks: keynote talks to open and\nclose both days of the conference, regular talks that occur during the day, and\nvery quick lightning talks that cover smaller topics in a very short time\nwindow. For some reason, all of the lightning talks were scheduled to overlap\nwith the only pharma-related main talks at the entire event. So people had to\nchoose whether to attend the pharma talks or the lightning talks. I'm not sure\nwhat the rationale for scheduling it that was is, but here's a plot to\ndemonstrate!\n\n\n\n\n\n\n::: {.cell}\n::: {.cell-output-display}\n![](talks_files/figure-html/build-viz-1.png){width=672}\n:::\n:::\n\n\n\n\n\n\n# Challenges\n\nAlthough the plot is pretty simple, I used some non-intuitive techniques to\nplace the text and line annotations when the data are dates instead of regular\ncontinuous values. I encoded the `y` axis as a continuous one and used\n`POSIXct` objects to place them on the `x` axis. Feel free to check the code to\nsee how that worked!\n\n# Conclusion\n\nAs always, thanks for reading! Feel free to reach out to me on\n[LinkedIn](https://linkedin.com/in/harrisonme) if you want to connect or ask\nquestions about my work. See you next week!",
6+
"supporting": [
7+
"talks_files"
8+
],
9+
"filters": [
10+
"rmarkdown/pagebreak.lua"
11+
],
12+
"includes": {},
13+
"engineDependencies": {},
14+
"preserve": {},
15+
"postProcess": true
16+
}
17+
}
21 KB
Loading

_freeze/projects/tidytuesday_01212025_mountains/mountains/execute-results/html.json

Lines changed: 17 additions & 0 deletions
Large diffs are not rendered by default.
25.7 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"hash": "826493c3cac8aaf90ee7e070e8f53751",
3+
"result": {
4+
"engine": "knitr",
5+
"markdown": "---\ntitle: \"R-Powered Pokedex\"\ncategories:\n - \"Data Viz\"\n - \"TidyTuesday\"\n - \"Dashboard\"\nformat: dashboard\nauthor: \"Mitch Harrison\"\ndate: \"April 1, 2025\"\n#image: \"../../images/thumbnails/projects/tidytuesday/06042024.jpg\"\ncss: \"style.css\"\n---\n\n::: {.cell}\n\n:::\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n\n```\n# A tibble: 949 × 22\n id pokemon species_id height weight base_experience type_1 type_2 hp\n <dbl> <chr> <dbl> <dbl> <dbl> <dbl> <chr> <chr> <dbl>\n 1 1 bulbasaur 1 0.7 6.9 64 grass poison 45\n 2 2 ivysaur 2 1 13 142 grass poison 60\n 3 3 venusaur 3 2 100 236 grass poison 80\n 4 4 charmander 4 0.6 8.5 62 fire <NA> 39\n 5 5 charmeleon 5 1.1 19 142 fire <NA> 58\n 6 6 charizard 6 1.7 90.5 240 fire flying 78\n 7 7 squirtle 7 0.5 9 63 water <NA> 44\n 8 8 wartortle 8 1 22.5 142 water <NA> 59\n 9 9 blastoise 9 1.6 85.5 239 water <NA> 79\n10 10 caterpie 10 0.3 2.9 39 bug <NA> 45\n# ℹ 939 more rows\n# ℹ 13 more variables: attack <dbl>, defense <dbl>, special_attack <dbl>,\n# special_defense <dbl>, speed <dbl>, color_1 <chr>, color_2 <chr>,\n# color_f <chr>, egg_group_1 <chr>, egg_group_2 <chr>, url_icon <chr>,\n# generation_id <dbl>, url_image <chr>\n```\n\n\n:::\n:::\n",
6+
"supporting": [],
7+
"filters": [
8+
"rmarkdown/pagebreak.lua"
9+
],
10+
"includes": {},
11+
"engineDependencies": {},
12+
"preserve": {},
13+
"postProcess": true
14+
}
15+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"hash": "d45ebbaa233c2188d559b2d9b9e6083e",
3+
"result": {
4+
"engine": "knitr",
5+
"markdown": "---\ntitle: \"Our World in Emissions\"\nauthor: \"Mitch Harrison\"\ncategories:\n - \"Data Viz\"\n - \"TidyTuesday\"\ndate: \"May 21, 2024\"\nimage: \"../../images/thumbnails/projects/tidytuesday/05212024.png\"\n---\n\n\n\n\n\nHello, all! Welcome to TidyTuesday. This week, as climate analysts often do, we \nare going to get mildly depressing in pursuit of a pretty graph. This time, we \nwill look at emissions from various actors' coal, natural gas, and cement \nproduction. Spoiler: it's not good.\n\nThe data for this week are brought to us by \n[Carbon Majors](https://carbonmajors.org), \nwho have compiled a database going all the way back to the 1850's! The dataset \ncontains emission data for 75 state and non-state actors, but we will aggregate \ninto total emissions by type for the plot. If you want to get more granular in \nyour own plot, check out the data on the TidyTuesday GitHub repository \n[here](https://github.com/rfordatascience/tidytuesday/tree/master/data/2024/2024-05-21)! \n\n\n\n\n\n\n::: {.cell layout-align=\"center\"}\n::: {.cell-output-display}\n![](emissions_files/figure-html/plt-final-1.png){fig-align='center' fig-alt='This plot is titled Our World in Emissions. It is an area plot that shows\nglobal emissions over time by type. The types are coal, natural gas,\ncement, and oil and NGL. The plot notes that in 1995, the UN first met to\ndiscuss the climate threat. The plot shows near-zero emissions from 1900 to\n1920, when a slow increase begins. From there, emission growth seems to be\nexponentially increasing, with no decline since the UN first met. Coal is\nthe largest emitter, then oil and NGL, then natural gas, and finally,\ncement.' width=768}\n:::\n:::\n\n::: {.cell}\n\n:::\n\n\n\n\n\n\nSo there she is! As we can see, the UN COP seems to be fighting an uphill \nbattle. Emissions are rising, but a good analyst must note the limitations of \nthe data. What jumps out to me is that renewables aren't listed here because \nit's only a graph of emissions. For all we know (from this graph), these \nemissions only produce a small portion of the world's energy, and we are arguing \nabout a couple of percentage points. Maybe we have defeated climate change after\nall!\n\nOf course, that's not the case, but proving that point will require outside \ndata. So, I welcome everyone reading to write a fuller report using more \nevidence. If nothing else, it would make for some fun data viz practice! \n\nIf you want a step-by-step guide to how I made this plot, there is a tutorial \npage [here](../../tutorials/tidytuesday_05212024.qmd), or even stop by my\n[Discord server](https://discord.gg/vF6W2bdKFH) and ask me! And, of course, \nif you appreciate my work enough to buy me a coffee, you can do so \n[here](https://buymeacoffee.com/mitchellharrison). \nThank you for reading, and see you next week!",
6+
"supporting": [
7+
"emissions_files"
8+
],
9+
"filters": [
10+
"rmarkdown/pagebreak.lua"
11+
],
12+
"includes": {},
13+
"engineDependencies": {},
14+
"preserve": {},
15+
"postProcess": true
16+
}
17+
}
58.3 KB
Loading

_freeze/projects/tidytuesday_06042024_cheese/cheese/execute-results/html.json

Lines changed: 21 additions & 0 deletions
Large diffs are not rendered by default.
22.2 KB
Loading
23.9 KB
Loading

0 commit comments

Comments
 (0)