teamBowlersVsBatsmenAllOppnAllMatchesPlot: Plot bowlers vs batsmen against all opposition all matches

View source: R/teamBowlersVsBatsmenAllOppnAllMatchesPlot.R

teamBowlersVsBatsmenAllOppnAllMatchesPlotR Documentation

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)

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)

Value

none

Note

Maintainer: Tinniam V Ganesh tvganesh.85@gmail.com

Author(s)

Tinniam V Ganesh

References

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

See Also

teamBatsmenPartnershipAllOppnAllMatches
teamBatsmenPartnershipAllOppnAllMatchesPlot
teamBatsmenPartnershipOppnAllMatchesChart
teamBowlersVsBatsmenAllOppnAllMatchesMain
teamBowlersVsBatsmenAllOppnAllMatchesRept

Examples

## Not run: 
# 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")

## End(Not run)


tvganesh/yorkr documentation built on May 13, 2023, 12:19 p.m.