Learn R Programming

yorkr (version 0.0.42)

teamBatsmenPartnershipAllOppnAllMatchesPlot: Plots team batting partnership all matches all oppositions

Description

This function plots the batting partnership of a team againt all oppositions in all matches This function also returns a dataframe with the batting partnerships

Usage

teamBatsmenPartnershipAllOppnAllMatchesPlot(matches,theTeam,main,plot=1)

Value

None or partnerships

Arguments

matches

All the matches of the team against all oppositions

theTeam

The team for which the the batting partnerships are sought

main

The main team for which the the batting partnerships are sought

plot

Whether the partnerships have top be rendered as a 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

teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipOppnAllMatchesChart
teamBatsmenVsBowlersAllOppnAllMatchesPlot
teamBatsmenVsBowlersOppnAllMatches

Examples

Run this code
if (FALSE) {
# Get all matches for team India against all oppositions
d <- teamBatsmanVsBowlersAllOppnAllMatchesRept(matches,"India",rank=1,dispRows=50)
 #Plot the partnerships
teamBatsmenVsBowlersAllOppnAllMatchesPlot(d)

#Do not plot but get the dataframe
e <- teamBatsmenVsBowlersAllOppnAllMatchesPlot(d,plot=FALSE)
}

Run the code above in your browser using DataLab