Coder Social home page Coder Social logo

thomaszwagerman / fplboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.06 MB

Shiny app leveraging Fantasy Premier League's API data. Developed as a package using the golem framework.

Home Page: https://tzwagerman.shinyapps.io/fplboard/

License: Other

R 99.85% CSS 0.15%
fpl fpl-api

fplboard's Introduction

fplboard

Lifecycle: experimental Codecov test coverage R-CMD-check

The goal of fplboard is to create a dashboard to easily extract useful information from the Fantasy Premier League (FPL) API.

This dashboard is built on top of fplscrapR, but also has its own native functions.

fplboard is built in a modular way using the golem framework. Each module has its own functionality and is an individual menu item, meaning features will be added to this package slowly over time.

The dashboard's theme is imitating the FPL's website. The goal of fplboard is just to have a bit of fun with your team's or mini-league data. From a developer's perspective, I'm experimenting with ways of presenting data in R/Shiny (I think there's ggplot, kable, gt and reactable so far), as well as some trying some Shiny development techniques (implementing reactive themeing, custom loading screens).

Installation

You can install the development version of fplboard like so:

remotes::install_github("thomaszwagerman/fplboard")

library(fplboard)

If you want to run the app locally, all you need to do is:

devtools::load_all()

run_app()

Examples

This is a basic example which shows a function that return expected points table for a given team.

Under the hood it relies on fplscrapR’s get_entry_player_picks() and get_player_info() functions.

Let’s have a look at the table:

Another bit of functionality is plotting minileague point over time, using fplscrapR::get_league_entries() information:

Or by rank for each gameweek:

fplboard's People

Contributors

thomaszwagerman avatar

Watchers

 avatar

fplboard's Issues

Archival/Migration

Archival of (mainly fplscrapR) and some deprecations that make any test() or check() an absolute nightmare, I will probably archive this shiny app (it's currently broken).

I may consider moving the backend from [fplscrapR} to {fantasy} if I have time. Worth noting fantasy had also not been maintained since 2022.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.