About 'VIZ

Welcome to MLS Fantasy VIZ. Here you will find useful visualizations (graphs, charts, plots, etc.) of statistics from Major League Soccer's 'Fantasy Soccer Manager' game.

Visualization Categories

Market

Market graphs for current round are updated hourly. Prior rounds show a snapshot of the market (if available) at the end of the round.

These graphs include all transfers. It does not differentiate between regular transfers & wild card transfers as that data is not available in the JSON objects that are used. As such, the transfer numbers can't be used to predict price changes accurately.

Form vs Price

Scatterplots of players Form vs Price. Grouped by position

Points vs Price

Scatterplots of players Points per game vs Price(for given round). Grouped by position. If a player has a double week, there will be 2 dots for the player.

Boxplots - Season

Boxplots of players points per game for the entire season. Grouped by team, home/away, position. There is also one plot for each team with points per game grouped by position. Each players score for each game they played in is included. Only scores for players who actually stepped on the field are included. 0's for players who didn't play are excluded.

Boxplots - Round

Boxplots of players points per game for the selected round. Grouped by team, home/away, position. There is also one plot for each team with points per game grouped by position. Each players score for each game they played in is included. Only scores for players who actually stepped on the field are included. 0's for players who didn't play are excluded. If the player had a double week, both scores are considered separately.

Next Round Matchups

These graphs compare the Form for the teams in each match and are grouped by position.

Top 20

Heatmaps of top 20 players form by Position, Price, and Bonus points

Form is provided by the MLS Fantasy site and is the players average points per game over the past 30 days. Since some of this graph considers home & away games, I use 6 rounds of a players data so that there are enough data points to evaluate their home & away form. All of the "Avg" columns are calculated from those 6 rounds (or less for rounds before 6.)

I do 2 calculations related to schedule strength. The first, "Schedule Strength", just calculates a score based on whether their upcoming games are home, away, double week, etc... It does not consider the strength of the opponent. The second is the "Round Strength". This compares the average scores for the players team and their opponent(s). It compares injuries( and the form & minutes of the injured players ) among the teams, goals scored & goals allowed. It also compares attacking & defensive bonus points for both home & away. For a teams home games, it compares it home stats vs the other teams away stats & vice versa. Don't bet the farm on these numbers.

Top 20 by Team

Heatmaps of top 20 player by Team

As with the Top 20 category, 6 rounds of data are used for the "Avg" columns. Form is average points per game in last 30 days.

Data Gathering and Processing

The data is scraped from http://fantasy.mlssoccer.com/ using the XML and RJSONIO packages in R. Market stats are gathered hourly. Player stats for each round are gathered at the end of the round and during the week when scores are updated. All statistical analysis and graphs are created using R.

The following R packages were particularly useful for managing the data and creating the graphs:

Stats Key

Player
Player
Pos
Position
Team
Team
Status
Status
Price
Price
Selected %
selected_by_percent
Points_Season
total_points_season
Form
Form (Average Points in past 5 rounds)
Points
Points
Minutes
Minutes (Game)
G
Goals (Game)
A
Assists
WF
Was Fouled
PCMP
Pass Completion Bonus
Bonus (A)
Attacking Bonus Points
Bonus (D)
Defensive Bonus Points
C
Crosses
KP
Key Passes
BCC
Big Chances Created
R
Recoveries
CLR
Clearances
BLK
Blocks
INT
Interceptions
TKL
Tackles
AP
Attempted Passes
CP
Completed Passes
PP
Pass Completion Percentage
YC
Yellow Cards
RC
red_cards
Saves
Saves
GC
goals_conceded
OG
own_goals
Last5 Bonus
Bonus Points (Last 5 Rounds)
Last5
Points (Last 5 Rounds)
Next5
Schedule
S_G
Goals (Season)
S_A
Assists (Season)
S_WF
Was Fouled (Season)
S_PCMP
Pass Completion Bonus (Season)
S_BP
Bonus Points (Season)
S_R
Recoveries (Season)
S_CLR
Clearances (Season)
S_BLK
Blocks (Season)
S_INT
Interceptions (Season)
S_TKL
Tackles (Season)
S_AP
Attempted Passes (Season)
S_CP
Completed Passes (Season)
S_PP
Pass Completion Percentage (Season)
S_C
Crosses (Season)
S_KP
Key Passes (Season)
S_BCC
Big Chances Created (Season)
S_GC
Goals Conceded (Season)
S_YC
Yellow Cards (Season)
S_RC
Red Cards (Season)
S_Saves
saves_season