ffverse / ffsimulator

Simulate Fantasy Football Seasons
https://ffsimulator.ffverse.com
Other
15 stars 5 forks source link

Autoplot #20

Closed rogers1000 closed 3 years ago

rogers1000 commented 3 years ago

Describe the bug Autoplot for points shows 14 times how many simulations there is.

Reprex WIP <- sleeper_connect(2021,654931383445176320) WIP_sim <- ff_simulate(conn = WIP, n_seasons = 1000, n_weeks = 14) autoplot(WIP_sim, type= "points")

`WIP <- sleeper_connect(2021,654931383445176320)
WIP_sim <- ff_simulate(conn = WIP, n_seasons = 1000, n_weeks = 14) 
autoplot(WIP_sim, type= "points")`

Expected behavior Chart says 14000 seasons simulated instead of 1000.

Session information Please copy the output of sessionInfo() into the box below.

R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252    LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                            LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] ggridges_0.5.3    ffscrapr_1.4.5    ffsimulator_1.0.0 nflfastR_4.2.0    ggimage_0.2.9     ggrepel_0.9.1     forcats_0.5.1     stringr_1.4.0     dplyr_1.0.7       purrr_0.3.4       readr_1.4.0      
[12] tidyr_1.1.3       tibble_3.1.2      ggplot2_3.3.3     tidyverse_1.3.1  

loaded via a namespace (and not attached):
 [1] nlme_3.1-149        fs_1.5.0            fastrmodels_1.0.1   lubridate_1.7.10    httr_1.4.2          tools_4.0.3         backports_1.2.0     utf8_1.1.4          R6_2.5.0            DBI_1.1.0          
[11] mgcv_1.8-33         colorspace_2.0-0    withr_2.3.0         tidyselect_1.1.0    curl_4.3            compiler_4.0.3      progressr_0.6.0     cli_3.0.1           rvest_1.0.0         xml2_1.3.2         
[21] labeling_0.4.2      slam_0.1-48         scales_1.1.1        checkmate_2.0.0     digest_0.6.27       pkgconfig_2.0.3     parallelly_1.23.0   dbplyr_2.1.1        fastmap_1.1.0       rlang_0.4.11       
[31] readxl_1.3.1        rstudioapi_0.13     gridGraphics_0.5-0  generics_0.1.0      farver_2.0.3        jsonlite_1.7.2      magrittr_2.0.1      ggplotify_0.0.5     Matrix_1.2-18       Rcpp_1.0.5         
[41] munsell_0.5.0       fansi_0.4.1         lifecycle_1.0.0     furrr_0.2.2         stringi_1.5.3       Rglpk_0.6-4         snakecase_0.11.0    plyr_1.8.6          grid_4.0.3          parallel_4.0.3     
[51] listenv_0.8.0       crayon_1.4.1        lattice_0.20-41     haven_2.3.1         splines_4.0.3       hms_1.1.0           magick_2.5.2        pillar_1.6.1        ratelimitr_0.4.1    xgboost_1.2.0.1    
[61] codetools_0.2-16    reprex_2.0.0        glue_1.4.2          ggfun_0.0.3         data.table_1.13.2   BiocManager_1.30.10 modelr_0.1.8        vctrs_0.3.8         cellranger_1.1.0    gtable_0.3.0       
[71] future_1.21.0       assertthat_0.2.1    cachem_1.0.5        xfun_0.19           janitor_2.0.1       broom_0.7.8         rvcheck_0.1.8       tinytex_0.27        memoise_2.0.0       globals_0.14.0     
[81] ellipsis_0.3.2   

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context Add any other context about the problem here.

tanho63 commented 3 years ago

This is correct haha, it’s 14K simulated weeks

rogers1000 commented 3 years ago

This is correct haha, it’s 14K simulated weeks

That would make sense. Sorry, saw the big number and went this seems wrong. Doesn't help I'm looking at seasons data most of the time.