Get the distance transformation between X and Y coordinates.
1 | dist_transform(data, sport_type, x_col, y_col)
|
data |
a dataframe object |
sport_type |
a character argument which can be "bball", "lax", or "soccer". |
x_col |
column of x coordinates |
y_col |
column of y coordinates |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.