Learn R Programming

yorkr (version 0.0.42)

batsmanWinProbLR: Plot the batsman win probability using Logistic Regression model

Description

This function plots the batsman win probability of the teams in a T20 match

Usage

batsmanWinProbLR(match,t1,t2,plot=1)

Value

none

Arguments

match

The dataframe of the match

t1

The 1st team of the match

t2

the 2nd team in the match

plot

Plot=1 (static), Plot=2(interactive)

Author

Tinniam V Ganesh

References

https://cricsheet.org/
https://gigadom.in/
https://github.com/tvganesh/yorkrData/

See Also

getBatsmanDetails
getBowlerWicketDetails
batsmanDismissals
getTeamBattingDetails

Examples

Run this code
if (FALSE) {
#Get the match details
a <- getMatchDetails("England","Pakistan","2006-09-05",dir="../temp")

# Plot tne match worm plot
batsmanWinProbLR(a,'England',"Pakistan")
}

Run the code above in your browser using DataLab