Learn R Programming

yorkr (version 0.0.42)

batsmanRunsVsStrikeRate: Batsman runs versus strike rate

Description

This function plots the runs scored by the batsman and the runs scored by the batsman. A loess line is fitted over the points

Usage

batsmanRunsVsStrikeRate(df, name= "A Late Cut",dateRange,staticIntv=1)

Value

None

Arguments

df

Data frame

name

Name of batsman

dateRange

Date interval to consider

staticIntv

Static or interactive -staticIntv =1 (static plot) & staticIntv =2 (interactive plot)

Author

Tinniam V Ganesh

References

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

See Also

batsmanDismissals
batsmanRunsVsDeliveries
batsmanRunsVsStrikeRate
batsmanRunsPredict
teamBatsmenPartnershipAllOppnAllMatches

Examples

Run this code
if (FALSE) {
#Get the data frame for Kohli
kohli <- getBatsmanDetails(team="India",name="Kohli",dir=pathToFile)
batsmanRunsVsStrikeRate(kohli,"Kohli",dateRange)
}

Run the code above in your browser using DataLab