|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
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", |
|
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( |
|
"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) |
|
|
|
|
|
|