Learn R Programming

yorkr (version 0.0.42)

teamBowlersVsBatsmenAllOppnAllMatchesPlot: Plot bowlers vs batsmen against all opposition all matches

Description

This function computes performance of bowlers of a team against all opposition in all matches

Usage

teamBowlersVsBatsmenAllOppnAllMatchesPlot(bowlerDF,t1,t2,plot=1)

Value

none

Arguments

bowlerDF

The data frame of the bowler whose performance is required

t1

The team against to which the player belong

t2

The opposing team

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

teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesRept

Examples

Run this code
if (FALSE) {
# Get all matches between India and all oppostions
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)

#Get the details of the bowler with the specified rank as a dataframe
df <- teamBowlersVsBatsmenAllOppnAllMatchesRept(matches,theTeam="India",rank=1)
#Plot this
teamBowlersVsBatsmenAllOppnAllMatchesPlot(df,"India","India")

df <- teamBowlersVsBatsmenAllOppnAllMatchesRept(matches,theTeam="England",rank=1)
teamBowlersVsBatsmenAllOppnAllMatchesPlot(df,"India","England")
}

Run the code above in your browser using DataLab