File size: 5,225 Bytes
95914a4
 
 
 
 
 
 
30629a5
95914a4
 
 
 
 
 
 
 
6c19697
95914a4
 
 
 
 
 
 
 
 
 
6c19697
 
 
efd6469
95914a4
 
 
 
 
 
 
 
6c19697
95914a4
efd6469
 
 
 
 
30629a5
6c19697
95914a4
 
6c19697
 
95914a4
30629a5
 
 
 
6c19697
 
 
 
8851fd1
 
 
 
efd6469
 
 
6c19697
95914a4
 
 
efd6469
95914a4
 
efd6469
 
95914a4
 
efd6469
 
95914a4
 
efd6469
 
95914a4
 
efd6469
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8851fd1
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
##### home.py #####
# Home page
# Thomas Nestico

# Import modules
from shiny import *
import shinyswatch
#import plotly.express as px
from shinywidgets import output_widget, render_widget
import pandas as pd
from configure import base_url

# Create app
home = App(ui.page_fluid(
    ui.tags.base(href=base_url),
    ui.tags.div(
         {"style": "width:90%;margin: 0 auto;max-width: 1600px;"},
        ui.tags.style(
            """
            h4 {
                margin-top: 1em;font-size:35px;
            }
            h2{
                font-size:25px;
            }
            """
         ),
    shinyswatch.theme.simplex(),
    ui.tags.h4("TJStats"),
    ui.tags.i("Baseball Analytics and Visualizations"),
    ui.markdown("""<a href='https://www.patreon.com/tj_stats'>Support me on Patreon for Access to 2024 Apps</a><sup>1</sup>"""),
    ui.navset_tab(
        ui.nav_control(
             ui.a(
                "Home",
                href="home/"
            ),
        ),
        ui.nav_menu(
            "Batter Charts",
            ui.nav_control(
            ui.a(
                "Batting Rolling",
                href="rolling_batter/"
            ),
            ui.a(
                "Spray & Damage",
                href="spray/"
            ),
            ui.a(
                "Decision Value",
                href="decision_value/"
            ),
            # ui.a(
            #     "Damage Model",
            #     href="damage_model/"
            # ),
            ui.a(
                "Batter Scatter",
                href="batter_scatter/"
            ),
            # ui.a(
            #     "EV vs LA Plot",
            #     href="ev_angle/"
            # ),
            ui.a(
                "Statcast Compare",
                href="statcast_compare/"
            )
        ),
        ),
        ui.nav_menu(
            "Pitcher Charts",
            ui.nav_control(
             ui.a(
                "Pitcher Rolling",
                href="rolling_pitcher/"
            ),
             ui.a(
                "Pitcher Summary",
                href="pitching_summary_graphic_new/"
            ),
             ui.a(
                "Pitcher Scatter",
                href="pitcher_scatter/"
            )
        ),
        )),ui.tags.h6(""),
        ui.markdown(
            """ 
# Welcome to TJStats!
---
## Intro
Hello, my name is Thomas Nestico, and welcome to my Baseball Analytics and Visualizations Website, TJStats!
I am a Civil Engineering by trade, but I have a passion for data analytics and machine learning, specifically
with respect to sports. This site and all of my visualizations were created using Python and its vast array of packages.
The framework for this site and all of the apps is <a href='https://shiny.posit.co/py/'>Shiny Python</a><sup>1</sup>.
All sources of data are referenced on each visualization.

## Apps
This site hosts my Baseball Data Viz Apps from the 2023 season. Here is a summary of what is accessible:

* Batter Charts
  - **Batter Rolling**: Rolling Stats Charts for MLB and MiLB batters
  - **Spray**: Batted Ball Trajectory Distributions of MLB batters vs rest of league
  - **Decision Value**: Scatter plot and Rolling Stats Chart for my <a href='https://medium.com/@thomasjamesnestico/modelling-batter-decision-value-dac74c55e20a'>Decision Value Model</a><sup>1</sup>
  - **Damage Model**: Hexbin and Rolling Stat Chart for my Damage Model (Article TBD)
  - **Batter Scatter**: Scatter Plots for MLB and MiLB batters
  - **Statcast Compare**: Table which compares MLB Batter's Statcast metrics
<br>
* Pitcher Charts
  - **Pitcher Rolling**: Rolling Stats Charts for MLB and MiLB pitchers
  - **Pitcher Summary**: Pitching Summary for MLB pitchers for any date range during 2023
  - **Pitcher Scatter**: Scatter Plots for MLB and MiLB pitchers


## Articles
I have published several articles on Medium covering different Baseball Analytics topics. In these articles I go through my methodology
when applying machine learning algorithms to create machine learning models to help better understand baseball concepts. Here is a list of 
articles which I have published:
* <a href='https://medium.com/@thomasjamesnestico/modelling-tjstuff-d9a451765484'>Modelling tjStuff+</a><sup>1</sup>
* <a href='https://medium.com/@thomasjamesnestico/modelling-batter-decision-value-dac74c55e20a'>Modelling Batter Decision Value</a><sup>1</sup>
* <a href='https://medium.com/@thomasjamesnestico/classifying-mlb-pitch-zones-and-predicting-milb-zones-7e95cf308254'>Classifying MLB Pitch Zones and Predicting MiLB Zones</a><sup>1</sup>


## 2024 Apps
Thank you for checking out the site. If you would like to further support my endeavours in the Baseball Analytics sphere,
here are few places where you can support me and get up to date baseball coverage and Apps for the 2024 season.

* Patreon: https://www.patreon.com/tj_stats
* Twitter: https://twitter.com/TJStats

## About Me
Here are a few other sites to learn more about me:
* LinkedIn: https://www.linkedin.com/in/thomas-nestico-b66013173/
* GitHub: https://github.com/tnestico
  """))), None)


#  - **EV vs LA Plot**: Scatter plot visualizing a MLB Batter's Exit Velocities and Launch Angles