##### 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("""Support me on Patreon for Access to 2024 Apps1"""), 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 Shiny Python1. 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 Decision Value Model1 - **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
* 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: * Modelling tjStuff+1 * Modelling Batter Decision Value1 * Classifying MLB Pitch Zones and Predicting MiLB Zones1 ## 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