Learn R Programming

yorkr (version 0.0.42)

teamBatsmenVsBowlersAllOppnAllMatchesPlot: Plot of Team batsmen vs bowlers against all opposition all matches

Description

This function computes the performance of batsmen against all bowlers of all oppositions in all matches. The data frame can be either plotted or returned to the user

Usage

teamBatsmenVsBowlersAllOppnAllMatchesPlot(df,plot=1)

Value

None or dataframe

Arguments

df

The dataframe of all the matches of the team against all oppositions

plot

plot=1 (static),plot=2(interactive), plot=3 (table)

Author

Tinniam V Ganesh

References

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

See Also

teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches

Examples

Run this code
if (FALSE) {
# Get all matches for team India against all oppositions in all matches
matches <-getAllMatchesAllOpposition("India",dir="../data/",save=TRUE)

# Also load directly from file
#load("allMatchesAllOpposition-India.RData")

d <- teamBatsmanVsBowlersAllOppnAllMatchesRept(matches,"India",rank=1,dispRows=50)
teamBatsmenVsBowlersAllOppnAllMatchesPlot(d)
e <- teamBatsmenVsBowlersAllOppnAllMatchesPlot(d,plot=FALSE)
}

Run the code above in your browser using DataLab