<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/inswinger-yorkr-swings-into-international-t20s/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/"> R – Giga thoughts …</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>In this post I introduce ‘<a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/inswingerFinal/">Inswinger</a>’ an interactive Shiny app to analyze International T20 players, matches and teams. This app was a natural consequence to my earlier Shiny app ‘<a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/googlyPlus/">GooglyPlus</a>’. Most of the structure for this app remained the same, I only had to work with a different dataset, so to speak.</p>
<p>The Googly Shiny app is based on my R package ‘<a target="_blank" rel="nofollow" href="https://cran.r-project.org/web/packages/yorkr/index.html">yorkr</a>’ which is now available in CRAN. The R package and hence this Shiny app is based on data from <a target="_blank" rel="nofollow" href="http://cricsheet.org/">Cricsheet</a>. Inswinger is based on the latest data dump from Cricsheet (Dec 2016) and includes all International T20 till then. There are a lot of new Internationation teams like Oman, Hong Kong, UAE, etc. In total there are 22 different International T20 teams in my Inswinger app.</p>
<p>The countries are a) Afghanistan b) Australia c) Bangladesh d) Bermuda e) Canada f) England g) Hong Kong h) India i) Ireland j) Kenya k) Nepal l) Netherlands m) New Zealand n) Oman o) Pakistan p) Papua New Guinea q) Scotland r) South Africa s) Sri Lanka t) United Arab Emirates u) West Indies v) Zimbabwe</p>
<p>My R package ‘yorkr’,  on which both these Shiny apps are based, has the ability to output either a dataframe or plot, depending on a parameter plot=TRUE or FALSE. Hence in the Inswinger Shiny app results can be displayed both as table or a plot depending on the choice of function.</p>
<p>Inswinger can do detailed analyses of a) Individual T20 batsman b) Individual T20 bowler c) Any T20 match d) Head to head confrontation between 2 T20 teams e) All matches of a T20 team against all other teams.</p>
<p>The Shiny app can be accessed at <a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/inswingerFinal/">Inswinger</a></p>
<p>The code for Inswinger is available at Github. Feel free to clone/download/fork  the code from <a target="_blank" rel="nofollow" href="https://github.com/tvganesh/inswinger">Inswinger</a></p>
<p>Based on the 5 detailed analysis domains there are 5 tabs<br>
<strong>A) T20 Batsman</strong>: This tab can be used to perform analysis of all T20 batsman. If a batsman has played in more than 1 team, then the overall performance is considered. There are 10 functions for the T20 Batsman. They are shown below<br>
– Batsman Runs vs. Deliveries<br>
– Batsman’s Fours &amp; Sixes<br>
– Dismissals of batsman<br>
– Batsman’s Runs vs Strike Rate<br>
– Batsman’s Moving Average<br>
– Batsman’s Cumulative Average Run<br>
– Batsman’s Cumulative Strike Rate<br>
– Batsman’s Runs against Opposition<br>
– Batsman’s Runs at Venue<br>
– Predict Runs of batsman</p>
<p><strong>B) T20 Bowler</strong>: This tab can be used to analyze individual T20 bowlers. The functions handle T20 bowlers who have played in more than 1 T20 team.<br>
– Mean Economy Rate of bowler<br>
– Mean runs conceded by bowler<br>
– Bowler’s Moving Average<br>
– Bowler’s Cumulative Avg. Wickets<br>
– Bowler’s Cumulative Avg. Economy Rate<br>
– Bowler’s Wicket Plot<br>
– Bowler’s Wickets against opposition<br>
– Bowler’s Wickets at Venues<br>
– Bowler’s wickets prediction</p>
<p><strong>C) T20 match</strong>: This tab can be used for analyzing individual T20 matches. The available functions are<br>
– Match Batting Scorecard – Table<br>
– Batting Partnerships – Plot, Table<br>
– Batsmen vs Bowlers – Plot, Table<br>
– Match Bowling Scorecard   – Table<br>
– Bowling Wicket Kind – Plot, Table<br>
– Bowling Wicket Runs – Plot, Table<br>
– Bowling Wicket Match – Plot, Table<br>
– Bowler vs Batsmen – Plot, Table<br>
– Match Worm Graph – Plot</p>
<p><strong>D) Head to head:</strong> This tab can be used for analyzing head-to-head confrontations, between any 2 T20 teams for e.g. all matches between India vs Australia or West Indies vs Sri Lanka . The available functions are<br>
-Team Batsmen Batting Partnerships All Matches – Plot, Table {Summary and Detailed}<br>
-Team Batting Scorecard All Matches – Table<br>
-Team Batsmen vs Bowlers all Matches – Plot, Table<br>
-Team Wickets Opposition All Matches – Plot, Table<br>
-Team Bowling Scorecard All Matches – Table<br>
-Team Bowler vs Batsmen All Matches – Plot, Table<br>
-Team Bowlers Wicket Kind All Matches – Plot, Table<br>
-Team Bowler Wicket Runs All Matches – Plot, Table<br>
– Win Loss All Matches – Plot</p>
<p><strong>E) T20 team’s overall performance</strong>: this tab can be used analyze the overall performance of any T20 team. For this analysis all matches played by this team is considered. The available functions are<br>
-Team Batsmen Partnerships Overall – Plot, Table {Summary and Detailed)}<br>
-Team Batting Scorecard Overall –Table<br>
-Team Batsmen vs Bowlers Overall – Plot, Table<br>
-Team Bowler vs Batsmen Overall – Plot, Table<br>
-Team Bowling Scorecard Overall – Table<br>
-Team Bowler Wicket Kind Overall – Plot, Table</p>
<p>Below I include a random set of charts that are generated in each of the 5 tabs<br>
<strong>A. IPL Batsman</strong><br>
a. Shakib-al-Hassan (Bangladesh) :  Runs vs Deliveries<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-77/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled.png" data-orig-size="1563,594" data-image-title="untitled" class="wp-image-5272" data-comments-opened="1" data-recalc-dims="1" data-attachment-id="5272" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-77/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/02/untitled.png?resize=456%2C173&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/02/untitled.png?resize=456%2C173&ssl=1"></a></p>
<p>b. Virat Kohli (India)<strong> – </strong>Cumulative Average<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-78/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled1.png" data-orig-size="1563,621" data-image-title="untitled" data-comments-opened="1" class="wp-image-5273" data-recalc-dims="1" data-attachment-id="5273" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-78/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled1.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled1.png?resize=456%2C181&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled1.png?resize=456%2C181&ssl=1"></a></p>
<p>c.  AB Devilliers (South Africa) – Runs at venues<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-79/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled2.png" data-orig-size="1560,604" data-image-title="untitled" data-comments-opened="1" class="wp-image-5274" data-recalc-dims="1" data-attachment-id="5274" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-79/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled2.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/02/untitled2.png?resize=456%2C177&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/02/untitled2.png?resize=456%2C177&ssl=1"></a></p>
<p>d. Glenn Maxwell (Australia)  – Predict runs vs deliveries faces<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-80/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled3.png" data-orig-size="1341,621" data-image-title="untitled" data-comments-opened="1" class="wp-image-5275" data-recalc-dims="1" data-attachment-id="5275" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-80/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled3.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled3.png?resize=456%2C211&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled3.png?resize=456%2C211&ssl=1"></a></p>
<p><strong>B. IPL Bowler</strong><br>
a. TG Southee (New Zealand) – Mean Economy Rate vs overs<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-81/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled4.png" data-orig-size="1560,653" data-image-title="untitled" data-comments-opened="1" class="wp-image-5276" data-recalc-dims="1" data-attachment-id="5276" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-81/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled4.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled4.png?resize=456%2C191&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled4.png?resize=456%2C191&ssl=1"></a></p>
<p><strong>b) </strong>DJ Bravo – Moving Average of wickets<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-82/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled5.png" data-orig-size="1557,606" data-image-title="untitled" data-comments-opened="1" class="wp-image-5278" data-recalc-dims="1" data-attachment-id="5278" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-82/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled5.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled5.png?resize=456%2C177&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled5.png?resize=456%2C177&ssl=1"></a></p>
<p>c) AC Evans (Scotland) – Bowler Wickets Against Opposition<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-83/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled6.png" data-orig-size="1552,599" data-image-title="untitled" data-comments-opened="1" class="wp-image-5279" data-recalc-dims="1" data-attachment-id="5279" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-83/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled6.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled6.png?resize=456%2C176&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled6.png?resize=456%2C176&ssl=1"></a></p>
<p><strong>C.T</strong>2<strong>0 Match</strong><br>
a. Match Score (Afghanistan vs Canada, 2012-03-18)<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-84/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled7.png" data-orig-size="1229,644" data-image-title="untitled" data-comments-opened="1" class="wp-image-5286" data-recalc-dims="1" data-attachment-id="5286" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-84/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled7.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled7.png?resize=456%2C239&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled7.png?resize=456%2C239&ssl=1"></a></p>
<p><strong>b)  </strong>Match batting partnerships (Plot) Hong Kong vs Oman (2015-11-21), Hong Kong<br>
Hong Kong Partnerships<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-85/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled8.png" data-orig-size="1548,658" data-image-title="untitled" data-comments-opened="1" class="wp-image-5287" data-recalc-dims="1" data-attachment-id="5287" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-85/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled8.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled8.png?resize=456%2C194&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled8.png?resize=456%2C194&ssl=1"></a></p>
<p>c) Match batting partnerships (Table) – Ireland vs Scotland(2012-03-18, Ireland)<br>
Batting partnership can also be displayed as a table<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-86/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled9.png" data-orig-size="1217,659" data-image-title="untitled" data-comments-opened="1" class="wp-image-5288" data-recalc-dims="1" data-attachment-id="5288" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-86/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled9.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled9.png?resize=456%2C247&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled9.png?resize=456%2C247&ssl=1"></a></p>
<p><strong>d) </strong>Batsmen vs Bowlers (Plot) – India vs England (2012-12-22)<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-87/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled10.png" data-orig-size="1549,664" data-image-title="untitled" data-comments-opened="1" class="wp-image-5290" data-recalc-dims="1" data-attachment-id="5290" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-87/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled10.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled10.png?resize=456%2C196&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled10.png?resize=456%2C196&ssl=1"></a></p>
<p><strong>e) </strong>Match Worm Chart – Sri Lanka vs Pakistan (2015-08-01)<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-88/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled11.png" data-orig-size="1535,662" data-image-title="untitled" data-comments-opened="1" class="wp-image-5291" data-recalc-dims="1" data-attachment-id="5291" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-88/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled11.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/02/untitled11.png?resize=456%2C197&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/02/untitled11.png?resize=456%2C197&ssl=1"></a></p>
<p>D.<strong>Head to head</strong><br>
<strong>a) </strong>Team Batsmen Partnership (Plot) – India vs Australia (all matches)<br>
Virat Kohli has the highest total runs in partnerships against Australia<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-89/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled12.png" data-orig-size="1523,662" data-image-title="untitled" data-comments-opened="1" class="wp-image-5292" data-recalc-dims="1" data-attachment-id="5292" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-89/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled12.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled12.png?resize=456%2C198&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled12.png?resize=456%2C198&ssl=1"></a></p>
<p>b)  Team Batsmen Partnership (Summary – Table) – Kenya vs Bangladesh<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-91/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled14.png" data-orig-size="1245,688" data-image-title="untitled" data-comments-opened="1" class="wp-image-5294" data-recalc-dims="1" data-attachment-id="5294" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-91/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled14.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled14.png?resize=456%2C252&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled14.png?resize=456%2C252&ssl=1"></a></p>
<p><strong>c) </strong>Team Bowling Scorecard (Table only) India vs South Africa all Matches<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-92/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled15.png" data-orig-size="1012,676" data-image-title="untitled" data-comments-opened="1" class="wp-image-5295" data-recalc-dims="1" data-attachment-id="5295" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-92/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled15.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled15.png?resize=456%2C305&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled15.png?resize=456%2C305&ssl=1"></a></p>
<p>d) Wins- Losses New Zealand vs West Indies all Matches<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-96/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled19.png" data-orig-size="1553,644" data-image-title="untitled" data-comments-opened="1" class="wp-image-5299" data-recalc-dims="1" data-attachment-id="5299" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-96/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled19.png?w=300" data-large-file="https://i0.wp.com/gigadom.files.wordpress.com/2017/02/untitled19.png?resize=456%2C189&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i0.wp.com/gigadom.files.wordpress.com/2017/02/untitled19.png?resize=456%2C189&ssl=1"></a></p>
<p><strong>C) Overall performances</strong><br>
a) Batting Scorecard All Matches  (Table only) – England’s overall batting performance<br>
Eoin Morgan, Kevin Pieterson  &amp; SJ Taylor have the best performance<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-93/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled16.png" data-orig-size="1212,674" data-image-title="untitled" data-comments-opened="1" class="wp-image-5296" data-recalc-dims="1" data-attachment-id="5296" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-93/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled16.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled16.png?resize=456%2C254&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled16.png?resize=456%2C254&ssl=1"></a></p>
<p><strong>b) </strong>Batsman vs Bowlers all Matches (Plot)<br>
India’s best performing batsman (Rank=1) is Virat Kohli<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-94/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled17.png" data-orig-size="1561,669" data-image-title="untitled" data-comments-opened="1" class="wp-image-5297" data-recalc-dims="1" data-attachment-id="5297" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-94/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled17.png?w=300" data-large-file="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled17.png?resize=456%2C196&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i2.wp.com/gigadom.files.wordpress.com/2017/02/untitled17.png?resize=456%2C196&ssl=1"></a></p>
<p>c)  Batsman vs Bowlers all Matches (Table)<br>
The plot above for Virat Kohli can also be displayed as a table. Kohli has score most runs DJ Bravo, SR Watson &amp; Shahid Afridi<br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-95/"><img sizes="(max-width: 676px) 100vw, 676px" data-image-description="" data-orig-file="https://gigadom.files.wordpress.com/2017/02/untitled18.png" data-orig-size="902,688" data-image-title="untitled" data-comments-opened="1" class="wp-image-5298" data-recalc-dims="1" data-attachment-id="5298" data-permalink="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/untitled-95/" alt="untitled" data-medium-file="https://gigadom.files.wordpress.com/2017/02/untitled18.png?w=300" data-large-file="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled18.png?resize=456%2C348&amp;ssl=1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" src="https://i1.wp.com/gigadom.files.wordpress.com/2017/02/untitled18.png?resize=456%2C348&ssl=1"></a></p>
<p>The <strong>Inswinger</strong> Shiny app can be accessed at <a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/inswingerFinal/">Inswinger</a>. Give it a swing!</p>
<p>The code for Inswinger is available at Github. Feel free to clone/download/fork  the code from <a target="_blank" rel="nofollow" href="https://github.com/tvganesh/inswinger">Inswinger</a></p>
<p>Also see my other Shiny apps<br>
1.<a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/googlyPlus/">GooglyPlus</a><br>
2.<a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/Shakespeare/">What would Shakespeare say?</a><br>
3.<a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/Sixer/">Sixer</a><br>
4.<a target="_blank" rel="nofollow" href="https://tvganesh.shinyapps.io/crimesAgainstWomenInIndia/">Revisiting crimes against women in India</a></p>
<p>You may also like<br>
1. <a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2017/01/21/neural-networks-the-mechanics-of-backpropagation/">Neural Networks: The mechanics of backpropagation</a><br>
<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/06/01/a-primer-on-qubits-quantum-gates-and-quantum-operations/">A primer on Qubits, Quantum gates and Quantum Operation</a><br>
2. <a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2012/05/14/re-working-the-lucy-richardson-algorithm-in-opencv/">Re-working the Lucy Richardson algorithm in OpenCV</a><br>
3.<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2011/05/13/design-principles-of-scalable-distributed-systems/">Design Principles of Scalable, Distributed Systems</a><br>
4.<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2014/08/07/spicing-up-a-ibm-bluemix-cloud-app-with-mongodb-and-nodeexpress/">Spicing up a IBM Bluemix cloud app with MongoDB and NodeExpress</a><br>
5.<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2011/01/19/programming-languages-in-laymans-language/">Programming languages in layman’s language</a><br>
7.<a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/2016/05/14/re-introducing-cricketr-an-r-package-to-analyze-performances-of-cricketers/">Re-introducing cricketr! : An R package to analyze performances of cricketers</a></p>
<p>To see all posts take at a look at <a target="_blank" rel="nofollow" href="https://gigadom.wordpress.com/aa-2/">Index of Posts</a></p>
<p> <a target="_blank" rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gigadom.wordpress.com/5270/"><img alt="" src="http://feeds.wordpress.com/1.0/comments/gigadom.wordpress.com/5270/" border="0"></a> <img alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" border="0" data-recalc-dims="1"></p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://gigadom.wordpress.com/2017/02/14/inswinger-yorkr-swings-into-international-t20s/"> R – Giga thoughts …</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/_stG7FL09A0"></a></div>