
This function returns plots a time line of won,lost,draw,tied or no result for a team against other teams in home/away or neutral venues
plotTimelineofWinsLosses(file,teamName,opposition=c("all"),homeOrAway=c("all"),
startDate="2001-01-01",endDate="2019-01-01",matchType="Test")
The CSV file for which the plot is required
The name of the team for which plot is required
Opposition is a vector namely c("all") or c("Australia", "India", "England")
This parameter is a vector which is either c("all") or a vector of venues c("home","away","neutral")
The start date from which time line is required
The end data for which the time line plot is required
Match type - Test, ODI or T20
None
https://www.espncricinfo.com/ci/content/stats/index.html https://gigadom.in/
teamWinLossStatusVsOpposition
teamWinLossStatusAtGrounds
plotTimelineofWinsLosses
# NOT RUN {
#Get the team data for India for Tests
df <- getTeamDataHomeAway(teamName="India",file="indiaOD.csv",matchType="ODI")
plotTimelineofWinsLosses("indiaOD.csv",teamName="India",
startDate="2015-01-01",endDate="2019-01-01", matchType="ODI")
# }
Run the code above in your browser using DataLab