plotTimelineofWinsLosses: Plot the time line of wins/losses/draw/tied etc for a Team in...

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/plotTimelineofWinsLosses.R

Description

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

Usage

1
2
plotTimelineofWinsLosses(file,teamName,opposition=c("all"),homeOrAway=c("all"),
      startDate="2001-01-01",endDate="2019-01-01",matchType="Test")

Arguments

file

The CSV file for which the plot is required

teamName

The name of the team for which plot is required

opposition

Opposition is a vector namely c("all") or c("Australia", "India", "England")

homeOrAway

This parameter is a vector which is either c("all") or a vector of venues c("home","away","neutral")

startDate

The start date from which time line is required

endDate

The end data for which the time line plot is required

matchType

Match type - Test, ODI or T20

Value

None

Note

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

Author(s)

Tinniam V Ganesh

References

https://www.espncricinfo.com/ci/content/stats/index.html
https://gigadom.in/

See Also

teamWinLossStatusVsOpposition teamWinLossStatusAtGrounds plotTimelineofWinsLosses

Examples

1
2
3
4
5
6
7
8
## 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")

## End(Not run)

cricketr documentation built on March 23, 2021, 9:06 a.m.