50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


yorkr (version 0.0.42)

teamRunsSRPlotAllOppnAllMatches: Team batting plots runs vs SR for team against all oppositions in all matches

Description

This function computes and plots runs vs SR of a team in all matches against all oppositions.

Usage

teamRunsSRPlotAllOppnAllMatches(matches,theTeam,plot=1)

Value

details The data frame of the scorecard of the team in all matches against all oppositions

Arguments

matches

All matches of the team in all matches with all oppositions

theTeam

The team for which the the batting partnerships are sought

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

teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBowlingWicketRunsAllOppnAllMatches

Examples

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

# This can also be loaded from saved file
# load("allMatchesAllOpposition-India.RData")

# Top batsman is displayed in descending order of runs
teamRunsSRPlotAllOppnAllMatches(matches,theTeam="India")

# The best England players scorecard against India is shown
teamRunsSRPlotAllOppnAllMatches(matches,theTeam="England",plot=1)
}

Run the code above in your browser using DataLab