<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://animation.yihui.name/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>AniWiki: Animations in Statistics</title>
        <description></description>
        <link>http://animation.yihui.name/</link>
        <lastBuildDate>Wed, 08 Feb 2012 02:06:57 -0700</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://animation.yihui.name/lib/tpl/default/images/favicon.ico</url>
            <title>AniWiki: Animations in Statistics</title>
            <link>http://animation.yihui.name/</link>
        </image>
        <item>
            <title>K-Means Cluster Algorithm - [R code] </title>
            <link>http://animation.yihui.name/mvstat:k-means_cluster_algorithm?rev=1299703008</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot;&gt;&lt;a name=&quot;k-means_cluster_algorithm&quot; id=&quot;k-means_cluster_algorithm&quot;&gt;K-Means Cluster Algorithm&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Move! Average! Cluster! Move! Average! Cluster! …
&lt;/p&gt;

&lt;p&gt;
The k-Means cluster algorithm may be regarded as a series of iterations of: finding cluster centers, computing distances between sample points, and redefining cluster membership. 
&lt;/p&gt;

&lt;p&gt;
The data given by &lt;code&gt;x&lt;/code&gt; is clustered by the &lt;em&gt;k&lt;/em&gt;-means method, which aims to partition the points into &lt;em&gt;k&lt;/em&gt; groups such that the sum of squares from points to the assigned cluster centers is minimized. At the minimum, all cluster centres are at the mean of their Voronoi sets (the set of data points which are nearest to the cluster centre).
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT1 SECTION &quot;K-Means Cluster Algorithm&quot; [1-619] --&gt;
&lt;h2 class=&quot;sectionedit2&quot;&gt;&lt;a name=&quot;animation&quot; id=&quot;animation&quot;&gt;Animation&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
   &lt;div class=&quot;scianimator&quot;&gt;&lt;div id=&quot;animation_kmeans&quot; style=&quot;display: inline-block;&quot;&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
    (function($) {
        $(document).ready(function() {

        $('#animation_kmeans').scianimator({
            'images': ['http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/1.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/2.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/3.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/4.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/5.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/6.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/7.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/8.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/9.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/10.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/11.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/12.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/13.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/14.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/15.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/16.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/17.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/18.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/19.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/k-means_cluster/20.png', ],
            'delay': 2000,
            'width': 480, 
        });
        $('#animation_kmeans').scianimator('play');
        });
    })(jQuery);
    &lt;/script&gt;

&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT2 SECTION &quot;Animation&quot; [620-751] --&gt;
&lt;h2 class=&quot;sectionedit3&quot;&gt;&lt;a name=&quot;r_code&quot; id=&quot;r_code&quot;&gt;R code&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;pre class=&quot;code r&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;library&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;animation&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
saveHTML&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;ani.&lt;span class=&quot;me1&quot;&gt;options&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;interval &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;, nmax &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;50&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
&lt;span class=&quot;kw4&quot;&gt;par&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; mar &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1.5&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, mgp &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1.5&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0.5&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
cent &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1.5&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
x &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; NULL
&lt;span class=&quot;kw2&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;i &lt;span class=&quot;kw1&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; x &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;x, &lt;span class=&quot;kw7&quot;&gt;rnorm&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;, &lt;span class=&quot;kw2&quot;&gt;mean&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; cent&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
x &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;matrix&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;x, &lt;span class=&quot;kw2&quot;&gt;ncol&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
&lt;span class=&quot;kw2&quot;&gt;colnames&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;X1&amp;quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;X2&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
kmeans.&lt;span class=&quot;me1&quot;&gt;ani&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;x, centers &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;, pch &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;, &lt;span class=&quot;kw2&quot;&gt;col&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,img.&lt;span class=&quot;me1&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;kmeans_ani&amp;quot;&lt;/span&gt;, htmlfile &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;kmeans.html&amp;quot;&lt;/span&gt;, ani.&lt;span class=&quot;me1&quot;&gt;height&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;,    
ani.&lt;span class=&quot;me1&quot;&gt;width&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;600&lt;/span&gt;, &lt;span class=&quot;kw4&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;K-means Cluster Algorithm&amp;quot;&lt;/span&gt;,      
description &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Move! Average! Cluster! Move! Average! Cluster!...&amp;quot;&lt;/span&gt;,          
&lt;span class=&quot;st0&quot;&gt;&amp;quot;Which might be helpful in understanding the concept of K-means Culster Algorithm Analysis .&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
&lt;span class=&quot;co1&quot;&gt;## R version 2.12.1 (2010-12-16)&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;## Platform: i386-pc-mingw32/i386 (32-bit)&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;## Other packages: animation 2.0-0&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
&lt;pre class=&quot;brush: r&quot;&gt;df = cbind(x1 = c(rnorm(100, -2), rnorm(100, 2)), x2 = rnorm(200))
library(animation)
## 2 centers
saveHTML({
    kmeans.ani(df, centers = 2)
})

## 4 centers
saveHTML({
    kmeans.ani(df, centers = 4)
}) 
&lt;/pre&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT3 SECTION &quot;R code&quot; [752-] --&gt;</description>
            <author>yihui</author>
        <category>mvstat</category>
            <pubDate>Wed, 09 Mar 2011 13:36:48 -0700</pubDate>
        </item>
        <item>
            <title>Dynamic Graphics - Chris Wild's inference research</title>
            <link>http://animation.yihui.name/dynamic:start?rev=1297025591</link>
            <description>
&lt;h1 class=&quot;sectionedit4&quot;&gt;&lt;a name=&quot;dynamic_graphics&quot; id=&quot;dynamic_graphics&quot;&gt;Dynamic Graphics&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
This page is to gather some resources on dynamic graphics. &lt;img src=&quot;http://animation.yihui.name/lib/images/smileys/fixme.gif&quot; class=&quot;middle&quot; alt=&quot;FIXME&quot; /&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT4 SECTION &quot;Dynamic Graphics&quot; [1-98] --&gt;
&lt;h2 class=&quot;sectionedit5&quot;&gt;&lt;a name=&quot;software&quot; id=&quot;software&quot;&gt;Software&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;div class=&quot;table sectionedit6&quot;&gt;&lt;table class=&quot;inline&quot;&gt;
	&lt;tr class=&quot;row0&quot;&gt;
		&lt;th class=&quot;col0&quot;&gt; name &lt;/th&gt;&lt;th class=&quot;col1&quot;&gt; description &lt;/th&gt;&lt;th class=&quot;col2&quot;&gt; image &lt;/th&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row1&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; &lt;a href=&quot;http://www.ggobi.org&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.ggobi.org&quot;  rel=&quot;nofollow&quot;&gt;GGobi&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; GGobi is a statistical software tool used for graphing various types of data. GGobi allows extensive exploration of the data with dynamic graphics. It is also a tool for looking at multivariate data. R (programming language) can be used in sync with GGobi. GGobi prides itself on its ability to link multiple graphs together. &lt;a href=&quot;http://en.wikipedia.org/wiki/GGobi&quot; class=&quot;interwiki iw_wp&quot; target=&quot;_blank&quot; title=&quot;http://en.wikipedia.org/wiki/GGobi&quot;&gt;GGobi&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;http://animation.yihui.name/lib/exe/fetch.php?hash=be630b&amp;amp;media=http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2Ff%2Ffd%2FGgobi-flea1.png%2F240px-Ggobi-flea1.png&quot; class=&quot;media&quot; title=&quot;http://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Ggobi-flea1.png/240px-Ggobi-flea1.png&quot;&gt;&lt;img src=&quot;http://animation.yihui.name/lib/exe/fetch.php?hash=be630b&amp;amp;media=http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2Ff%2Ffd%2FGgobi-flea1.png%2F240px-Ggobi-flea1.png&quot; class=&quot;media&quot; title=&quot;GGobi&quot; alt=&quot;GGobi&quot; /&gt;&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;!-- EDIT6 TABLE [121-634] --&gt;
&lt;/div&gt;
&lt;!-- EDIT5 SECTION &quot;Software&quot; [99-635] --&gt;
&lt;h2 class=&quot;sectionedit7&quot;&gt;&lt;a name=&quot;web-based_interactivity_in_statistics&quot; id=&quot;web-based_interactivity_in_statistics&quot;&gt;Web-based Interactivity in Statistics&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;div class=&quot;table sectionedit8&quot;&gt;&lt;table class=&quot;inline&quot;&gt;
	&lt;tr class=&quot;row0&quot;&gt;
		&lt;th class=&quot;col0&quot;&gt; name &lt;/th&gt;&lt;th class=&quot;col1&quot;&gt; description &lt;/th&gt;&lt;th class=&quot;col2&quot;&gt; image &lt;/th&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row1&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; &lt;a href=&quot;http://www.stat.sc.edu/rsrch/gasp&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.stat.sc.edu/rsrch/gasp&quot;  rel=&quot;nofollow&quot;&gt;GASP&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; The &lt;strong&gt;G&lt;/strong&gt;lobally &lt;strong&gt;A&lt;/strong&gt;ccessible &lt;strong&gt;S&lt;/strong&gt;tatistical &lt;strong&gt;P&lt;/strong&gt;rocedures initiative is designed to make statistical routines easily available via the &lt;acronym title=&quot;World Wide Web&quot;&gt;WWW&lt;/acronym&gt;. The routines currently available have been divided into two categories, data analysis and educational. &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;http://animation.yihui.name/lib/exe/fetch.php?hash=5b09a2&amp;amp;media=http%3A%2F%2Fwww.stat.sc.edu%2Frsrch%2Fgasp%2Fgasp2.gif&quot; class=&quot;media&quot; title=&quot;http://www.stat.sc.edu/rsrch/gasp/gasp2.gif&quot;&gt;&lt;img src=&quot;http://animation.yihui.name/lib/exe/fetch.php?hash=5b09a2&amp;amp;media=http%3A%2F%2Fwww.stat.sc.edu%2Frsrch%2Fgasp%2Fgasp2.gif&quot; class=&quot;media&quot; title=&quot;GASP&quot; alt=&quot;GASP&quot; /&gt;&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;!-- EDIT8 TABLE [687-1069] --&gt;
&lt;/div&gt;
&lt;!-- EDIT7 SECTION &quot;Web-based Interactivity in Statistics&quot; [636-1070] --&gt;
&lt;h2 class=&quot;sectionedit9&quot;&gt;&lt;a name=&quot;teaching&quot; id=&quot;teaching&quot;&gt;Teaching&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;div class=&quot;table sectionedit10&quot;&gt;&lt;table class=&quot;inline&quot;&gt;
	&lt;tr class=&quot;row0&quot;&gt;
		&lt;th class=&quot;col0&quot;&gt; name &lt;/th&gt;&lt;th class=&quot;col1&quot;&gt; description &lt;/th&gt;&lt;th class=&quot;col2&quot;&gt; image &lt;/th&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row1&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; Chris Wild&amp;#039;s inference &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; &lt;a href=&quot;http://www.stat.auckland.ac.nz/~wild/09.USCOTSTalk.html&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://www.stat.auckland.ac.nz/~wild/09.USCOTSTalk.html&quot;  rel=&quot;nofollow&quot;&gt;http://www.stat.auckland.ac.nz/~wild/09.USCOTSTalk.html&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;http://animation.yihui.name/lib/exe/fetch.php?hash=477681&amp;amp;media=http%3A%2F%2Fwww.censusatschool.org.nz%2F2009%2Finformal-inference%2FWPRH%2Fremember.gif&quot; class=&quot;media&quot; title=&quot;http://www.censusatschool.org.nz/2009/informal-inference/WPRH/remember.gif&quot;&gt;&lt;img src=&quot;http://animation.yihui.name/lib/exe/fetch.php?hash=477681&amp;amp;w=240&amp;amp;media=http%3A%2F%2Fwww.censusatschool.org.nz%2F2009%2Finformal-inference%2FWPRH%2Fremember.gif&quot; class=&quot;media&quot; alt=&quot;&quot; width=&quot;240&quot; /&gt;&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;!-- EDIT10 TABLE [1092-1292] --&gt;
&lt;/div&gt;
&lt;!-- EDIT9 SECTION &quot;Teaching&quot; [1071-] --&gt;</description>
            <author>yihui</author>
        <category>dynamic</category>
            <pubDate>Sun, 06 Feb 2011 13:53:11 -0700</pubDate>
        </item>
        <item>
            <title>Insert animations in ''AniWiki'' - update examples according to the new version of the plugin</title>
            <link>http://animation.yihui.name/wiki:animation_example?rev=1296689680</link>
            <description>
&lt;h1 class=&quot;sectionedit11&quot;&gt;&lt;a name=&quot;insert_animations_in_aniwiki&quot; id=&quot;insert_animations_in_aniwiki&quot;&gt;Insert animations in &amp;#039;&amp;#039;AniWiki&amp;#039;&amp;#039;&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Please read the explanations in the &lt;a href=&quot;http://animation.yihui.name/wiki:animation_plugin&quot; class=&quot;wikilink1&quot; title=&quot;wiki:animation_plugin&quot;&gt;plugin page&lt;/a&gt; to understand how animations work in &lt;code&gt;AniWiki&lt;/code&gt;.
&lt;/p&gt;

&lt;p&gt;
&lt;img src=&quot;http://animation.yihui.name/lib/images/smileys/icon_exclaim.gif&quot; class=&quot;middle&quot; alt=&quot;:!:&quot; /&gt; Always bear in mind that you have provided a correct url, i.e. your images can be accessed by such a series of addresses: &lt;code&gt;url + i + type&lt;/code&gt;, where &lt;code&gt;i&lt;/code&gt; is an integer giving the filename of each frame.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT11 SECTION &quot;Insert animations in ''AniWiki''&quot; [1-376] --&gt;
&lt;h2 class=&quot;sectionedit12&quot;&gt;&lt;a name=&quot;rotation_of_a_word_animation&quot; id=&quot;rotation_of_a_word_animation&quot;&gt;Rotation of a word &amp;#039;&amp;#039;Animation&amp;#039;&amp;#039;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
In the introduction page of the &lt;a href=&quot;http://animation.yihui.name/animation:start&quot; class=&quot;wikilink1&quot; title=&quot;animation:start&quot;&gt;package &amp;#039;&amp;#039;animation&amp;#039;&amp;#039;&lt;/a&gt;, I have used a rotating word as the beginning example. Now 30 images from that example are uploaded to this site, so here we are able to create an &lt;acronym title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/acronym&gt; animation page as follows:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;&amp;lt;ani example http://animation.yihui.name/_media/wiki: png 30 0.1 autoplay true 400|&amp;#039;loopMode&amp;#039;: &amp;#039;sweep&amp;#039;&amp;gt;&lt;/pre&gt;

&lt;p&gt;
The above code will generate the result below:
&lt;/p&gt;

&lt;p&gt;
   &lt;div class=&quot;scianimator&quot;&gt;&lt;div id=&quot;animation_example&quot; style=&quot;display: inline-block;&quot;&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
    (function($) {
        $(document).ready(function() {

        $('#animation_example').scianimator({
            'images': ['http://animation.yihui.name/_media/wiki:1.png', 'http://animation.yihui.name/_media/wiki:2.png', 'http://animation.yihui.name/_media/wiki:3.png', 'http://animation.yihui.name/_media/wiki:4.png', 'http://animation.yihui.name/_media/wiki:5.png', 'http://animation.yihui.name/_media/wiki:6.png', 'http://animation.yihui.name/_media/wiki:7.png', 'http://animation.yihui.name/_media/wiki:8.png', 'http://animation.yihui.name/_media/wiki:9.png', 'http://animation.yihui.name/_media/wiki:10.png', 'http://animation.yihui.name/_media/wiki:11.png', 'http://animation.yihui.name/_media/wiki:12.png', 'http://animation.yihui.name/_media/wiki:13.png', 'http://animation.yihui.name/_media/wiki:14.png', 'http://animation.yihui.name/_media/wiki:15.png', 'http://animation.yihui.name/_media/wiki:16.png', 'http://animation.yihui.name/_media/wiki:17.png', 'http://animation.yihui.name/_media/wiki:18.png', 'http://animation.yihui.name/_media/wiki:19.png', 'http://animation.yihui.name/_media/wiki:20.png', 'http://animation.yihui.name/_media/wiki:21.png', 'http://animation.yihui.name/_media/wiki:22.png', 'http://animation.yihui.name/_media/wiki:23.png', 'http://animation.yihui.name/_media/wiki:24.png', 'http://animation.yihui.name/_media/wiki:25.png', 'http://animation.yihui.name/_media/wiki:26.png', 'http://animation.yihui.name/_media/wiki:27.png', 'http://animation.yihui.name/_media/wiki:28.png', 'http://animation.yihui.name/_media/wiki:29.png', 'http://animation.yihui.name/_media/wiki:30.png', ],
            'delay': 100,
            'width': 400, 'loopMode': 'sweep'
        });
        $('#animation_example').scianimator('play');
        });
    })(jQuery);
    &lt;/script&gt;

&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT12 SECTION &quot;Rotation of a word ''Animation''&quot; [377-949] --&gt;
&lt;h2 class=&quot;sectionedit13&quot;&gt;&lt;a name=&quot;buffon_s_needle&quot; id=&quot;buffon_s_needle&quot;&gt;Buffon&amp;#039;s Needle&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Here is an example illustrating how to upload images to other websites and cite them here. I have generated 100 animation frames from the function &lt;code&gt;buffon.needle()&lt;/code&gt; in package &lt;code&gt;animation&lt;/code&gt; and uploaded them to &lt;a href=&quot;http://photobucket.com&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://photobucket.com&quot;  rel=&quot;nofollow&quot;&gt;Photobucket&lt;/a&gt;. You can view all the images in my album &lt;a href=&quot;http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/?start=all&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/?start=all&quot;  rel=&quot;nofollow&quot;&gt;buffon&amp;#039;s needle&lt;/a&gt;.
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;&amp;lt;ani buffon http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/ png 100 0.1 autoplay|&amp;gt;&lt;/pre&gt;

&lt;p&gt;
Here is the result (it can take one or two minutes to download all the images, depending on your internet connection):
&lt;/p&gt;

&lt;p&gt;
   &lt;div class=&quot;scianimator&quot;&gt;&lt;div id=&quot;animation_buffon&quot; style=&quot;display: inline-block;&quot;&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
    (function($) {
        $(document).ready(function() {

        $('#animation_buffon').scianimator({
            'images': ['http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/1.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/2.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/3.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/4.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/5.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/6.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/7.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/8.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/9.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/10.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/11.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/12.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/13.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/14.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/15.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/16.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/17.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/18.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/19.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/20.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/21.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/22.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/23.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/24.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/25.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/26.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/27.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/28.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/29.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/30.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/31.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/32.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/33.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/34.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/35.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/36.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/37.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/38.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/39.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/40.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/41.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/42.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/43.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/44.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/45.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/46.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/47.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/48.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/49.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/50.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/51.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/52.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/53.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/54.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/55.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/56.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/57.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/58.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/59.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/60.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/61.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/62.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/63.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/64.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/65.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/66.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/67.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/68.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/69.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/70.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/71.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/72.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/73.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/74.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/75.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/76.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/77.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/78.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/79.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/80.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/81.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/82.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/83.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/84.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/85.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/86.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/87.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/88.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/89.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/90.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/91.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/92.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/93.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/94.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/95.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/96.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/97.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/98.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/99.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/100.png', ],
            'delay': 100,
            'controls': ['first', 'previous', 'play', 'next', 'last', 'loop', 'speed'], 
        });
        $('#animation_buffon').scianimator('play');
        });
    })(jQuery);
    &lt;/script&gt;

&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT13 SECTION &quot;Buffon's Needle&quot; [950-] --&gt;</description>
            <author>yihui</author>
        <category>wiki</category>
            <pubDate>Wed, 02 Feb 2011 16:34:40 -0700</pubDate>
        </item>
        <item>
            <title>Animation Plugin (for creating animations) - animation plugin update to the 3rd version</title>
            <link>http://animation.yihui.name/wiki:animation_plugin?rev=1296689452</link>
            <description>
&lt;h1 class=&quot;sectionedit14&quot;&gt;&lt;a name=&quot;animation_plugin_for_creating_animations&quot; id=&quot;animation_plugin_for_creating_animations&quot;&gt;Animation Plugin (for creating animations)&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
The &lt;code&gt;animation&lt;/code&gt; plugin can generate an animation from a sequence of images, e.g. 1.png, 2.png, 3.png, … The animation is driven by &lt;acronym title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/acronym&gt; &amp;amp; &lt;acronym title=&quot;JavaScript&quot;&gt;JS&lt;/acronym&gt;, and the &lt;acronym title=&quot;JavaScript&quot;&gt;JS&lt;/acronym&gt; library is from &lt;a href=&quot;https://github.com/brentertz/scianimator&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;https://github.com/brentertz/scianimator&quot;  rel=&quot;nofollow&quot;&gt;SciAnimator&lt;/a&gt;.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT14 SECTION &quot;Animation Plugin (for creating animations)&quot; [1-290] --&gt;
&lt;h2 class=&quot;sectionedit15&quot;&gt;&lt;a name=&quot;download_and_install&quot; id=&quot;download_and_install&quot;&gt;Download and Install&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Plugin source: &lt;a href=&quot;http://animation.yihui.name/_media/wiki:animation.zip&quot; class=&quot;media mediafile mf_zip&quot; title=&quot;wiki:animation.zip&quot;&gt;zip format (53K)&lt;/a&gt; (last updated on 2011-02-02)
&lt;/p&gt;

&lt;p&gt;
For people who want to create animations in this wiki, the above file does not need to be downloaded (just follow the instructions below).
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT15 SECTION &quot;Download and Install&quot; [291-549] --&gt;
&lt;h2 class=&quot;sectionedit16&quot;&gt;&lt;a name=&quot;updates&quot; id=&quot;updates&quot;&gt;Updates&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; 2011-02-02: the 3rd version&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; the syntax has changed again, but this should not affect users; I&amp;#039;ve tried my best to maintain compatibility with old versions&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; 2011-01-01: the plugin was rewritten using SciAnimator; &lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; the last version is not completely compatible with the new version&lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;level3&quot;&gt;&lt;div class=&quot;li&quot;&gt; the width might not be correct&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level3&quot;&gt;&lt;div class=&quot;li&quot;&gt; there might be a tag &lt;code&gt;&amp;lt;/ani&amp;gt;&lt;/code&gt; which is not parsed any more&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; the &lt;code&gt;description&lt;/code&gt; field in the last version was discarded&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level2&quot;&gt;&lt;div class=&quot;li&quot;&gt; the &lt;code&gt;title&lt;/code&gt; field was replaced by &lt;code&gt;opts&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; 2008-06-20: the first version&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT16 SECTION &quot;Updates&quot; [550-1129] --&gt;
&lt;h2 class=&quot;sectionedit17&quot;&gt;&lt;a name=&quot;requirement&quot; id=&quot;requirement&quot;&gt;Requirement&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Any web browsers except the Microsoft Internet Explorer, e.g. Firefox, Safari, Google Chrome, Opera… The animations in the Internet Explorer might not be stable.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT17 SECTION &quot;Requirement&quot; [1130-1319] --&gt;
&lt;h2 class=&quot;sectionedit18&quot;&gt;&lt;a name=&quot;usage&quot; id=&quot;usage&quot;&gt;Usage&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The syntax:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;&amp;lt;ani id url type max interval autoplay navigator width | opts&amp;gt;&lt;/pre&gt;

&lt;p&gt;
There are 9 parameters in total:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;id&lt;/strong&gt;: a &lt;em&gt;unique&lt;/em&gt; identifer of each animation in the same page&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;url&lt;/strong&gt;: the &lt;em&gt;directory&lt;/em&gt; of the animation frames. &lt;img src=&quot;http://animation.yihui.name/lib/images/smileys/icon_exclaim.gif&quot; class=&quot;middle&quot; alt=&quot;:!:&quot; /&gt; NOT the actual &lt;acronym title=&quot;Uniform Resource Locator&quot;&gt;URL&lt;/acronym&gt; of any animation frames; only a directory!&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;type&lt;/strong&gt;: the image format. E.g. &lt;code&gt;png&lt;/code&gt;, &lt;code&gt;jpeg&lt;/code&gt;, etc&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;max&lt;/strong&gt;: the maximum number of animation frames; an integer&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;interval&lt;/strong&gt;: the time interval (duration) between animation frames in seconds; a non-negative real number&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;autoplay&lt;/strong&gt;: (optional) if a string &lt;code&gt;autoplay&lt;/code&gt; is provided here, the animation will start playing once the page is loaded; any other strings (including empty strings) means do not autoplay the animation&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;navigator&lt;/strong&gt;: (optional) whether to include a navigator in the toolbar panel; default to omit the navigator because it is too wide; if a string &lt;code&gt;true&lt;/code&gt; is provided here, the navigator will be included, but bear in mind that you should specify the &lt;strong&gt;width&lt;/strong&gt; option as well in this case&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;width&lt;/strong&gt;: (optional) the width of the animation frames in pixel; an integer&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;opts&lt;/strong&gt;: additional JavaScript options, e.g. &lt;code&gt; &amp;#039;theme&amp;#039;: &amp;#039;dark&amp;#039; &lt;/code&gt; (note the single quotes are necessary in &lt;acronym title=&quot;JavaScript&quot;&gt;JS&lt;/acronym&gt;); see &lt;a href=&quot;https://github.com/brentertz/scianimator&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;https://github.com/brentertz/scianimator&quot;  rel=&quot;nofollow&quot;&gt;SciAnimator&lt;/a&gt; for more options&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
Please do note that the first 8 parameters are separated by spaces, while the 9th parameter is seperated by ”&lt;code&gt;|&lt;/code&gt;”; besides, &lt;code&gt;autoplay&lt;/code&gt;, &lt;code&gt;navigator&lt;/code&gt;, &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;opts&lt;/code&gt; can be left empty.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT18 SECTION &quot;Usage&quot; [1320-2868] --&gt;
&lt;h2 class=&quot;sectionedit19&quot;&gt;&lt;a name=&quot;the_animation_interface&quot; id=&quot;the_animation_interface&quot;&gt;The animation interface&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The interface just looks like a movie player, so perhaps you can figure out what these buttons do without any explanations.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT19 SECTION &quot;The animation interface&quot; [2869-3030] --&gt;
&lt;h2 class=&quot;sectionedit20&quot;&gt;&lt;a name=&quot;example&quot; id=&quot;example&quot;&gt;Example&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Suppose we have created a sequence of 30 images with height equal to 300px: &lt;code&gt;1.png, 2.png, 3.png, …, 30.png&lt;/code&gt;, and they are in this directory &lt;code&gt;”http://animation.yihui.name/_media/wiki:”&lt;/code&gt;. Now we wish to create an animation in this wiki specifying the initial time interval to be &lt;code&gt;0.1&lt;/code&gt;:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;&amp;lt;ani example http://animation.yihui.name/_media/wiki: png 30 0.1 autoplay true 400|&amp;#039;utf8&amp;#039;: false, &amp;#039;theme&amp;#039;: &amp;#039;dark&amp;#039;&amp;gt;&lt;/pre&gt;

&lt;p&gt;
which will produce:
&lt;/p&gt;

&lt;p&gt;
   &lt;div class=&quot;scianimator&quot;&gt;&lt;div id=&quot;animation_example&quot; style=&quot;display: inline-block;&quot;&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
    (function($) {
        $(document).ready(function() {

        $('#animation_example').scianimator({
            'images': ['http://animation.yihui.name/_media/wiki:1.png', 'http://animation.yihui.name/_media/wiki:2.png', 'http://animation.yihui.name/_media/wiki:3.png', 'http://animation.yihui.name/_media/wiki:4.png', 'http://animation.yihui.name/_media/wiki:5.png', 'http://animation.yihui.name/_media/wiki:6.png', 'http://animation.yihui.name/_media/wiki:7.png', 'http://animation.yihui.name/_media/wiki:8.png', 'http://animation.yihui.name/_media/wiki:9.png', 'http://animation.yihui.name/_media/wiki:10.png', 'http://animation.yihui.name/_media/wiki:11.png', 'http://animation.yihui.name/_media/wiki:12.png', 'http://animation.yihui.name/_media/wiki:13.png', 'http://animation.yihui.name/_media/wiki:14.png', 'http://animation.yihui.name/_media/wiki:15.png', 'http://animation.yihui.name/_media/wiki:16.png', 'http://animation.yihui.name/_media/wiki:17.png', 'http://animation.yihui.name/_media/wiki:18.png', 'http://animation.yihui.name/_media/wiki:19.png', 'http://animation.yihui.name/_media/wiki:20.png', 'http://animation.yihui.name/_media/wiki:21.png', 'http://animation.yihui.name/_media/wiki:22.png', 'http://animation.yihui.name/_media/wiki:23.png', 'http://animation.yihui.name/_media/wiki:24.png', 'http://animation.yihui.name/_media/wiki:25.png', 'http://animation.yihui.name/_media/wiki:26.png', 'http://animation.yihui.name/_media/wiki:27.png', 'http://animation.yihui.name/_media/wiki:28.png', 'http://animation.yihui.name/_media/wiki:29.png', 'http://animation.yihui.name/_media/wiki:30.png', ],
            'delay': 100,
            'width': 400, 'utf8': false, 'theme': 'dark'
        });
        $('#animation_example').scianimator('play');
        });
    })(jQuery);
    &lt;/script&gt;

&lt;/p&gt;

&lt;p&gt;
Here is an &lt;a href=&quot;http://animation.yihui.name/wiki:animation_example&quot; class=&quot;wikilink1&quot; title=&quot;wiki:animation_example&quot;&gt;example page&lt;/a&gt;, and you can find even more in this wiki.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT20 SECTION &quot;Example&quot; [3031-3711] --&gt;
&lt;h2 class=&quot;sectionedit21&quot;&gt;&lt;a name=&quot;feedback&quot; id=&quot;feedback&quot;&gt;Feedback&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Please drop me an email if you have any suggestions. — &lt;em&gt;&lt;a href=&quot;mailto:xie%20%5Bat%5D%20yihui%20%5Bdot%5D%20name&quot; class=&quot;mail&quot; title=&quot;xie [at] yihui [dot] name&quot;&gt;Yihui Xie&lt;/a&gt; 2011/01/01 23:11&lt;/em&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT21 SECTION &quot;Feedback&quot; [3712-] --&gt;</description>
            <author>yihui</author>
        <category>wiki</category>
            <pubDate>Wed, 02 Feb 2011 16:30:52 -0700</pubDate>
        </item>
        <item>
            <title>The Newton-Raphson Method for Root-finding - Fixed theory section, added further reading section.</title>
            <link>http://animation.yihui.name/compstat:newton_s_method?rev=1296487062</link>
            <description>
&lt;h1 class=&quot;sectionedit22&quot;&gt;&lt;a name=&quot;the_newton-raphson_method_for_root-finding&quot; id=&quot;the_newton-raphson_method_for_root-finding&quot;&gt;The Newton-Raphson Method for Root-finding&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Newton&amp;#039;s method (also known as the Newton-Raphson method or the Newton-Fourier method) is an efficient algorithm for finding approximations to the zeros (or roots) of a real-valued function &lt;img src=&quot;http://www.forkosh.dreamhost.com/mimetex.cgi?\normalsize f(x)&quot; alt=&quot;\normalsize f(x)&quot; title=&quot;\normalsize f(x)&quot;  class=&quot;math&quot;/&gt;. 
&lt;/p&gt;

&lt;p&gt;
The iteration goes on in this way: 
&lt;/p&gt;

&lt;p&gt;
&lt;img src=&quot;http://www.forkosh.dreamhost.com/mimetex.cgi?x_{k+1} = x_k - \frac{f(x_k)}{f(x_k)}&quot; alt=&quot;x_{k+1} = x_k - \frac{f(x_k)}{f(x_k)}&quot; title=&quot;x_{k+1} = x_k - \frac{f(x_k)}{f(x_k)}&quot;  class=&quot;mediacenter&quot;/&gt;
&lt;/p&gt;

&lt;p&gt;
From the starting value &lt;img src=&quot;http://www.forkosh.dreamhost.com/mimetex.cgi?\normalsize x_0&quot; alt=&quot;\normalsize x_0&quot; title=&quot;\normalsize x_0&quot;  class=&quot;math&quot;/&gt;, vertical lines and points are plotted to show the location of the sequence of iteration values &lt;img src=&quot;http://www.forkosh.dreamhost.com/mimetex.cgi?\normalsize x_1&quot; alt=&quot;\normalsize x_1&quot; title=&quot;\normalsize x_1&quot;  class=&quot;math&quot;/&gt;, &lt;img src=&quot;http://www.forkosh.dreamhost.com/mimetex.cgi?\normalsize x_2&quot; alt=&quot;\normalsize x_2&quot; title=&quot;\normalsize x_2&quot;  class=&quot;math&quot;/&gt;, …; tangent lines are drawn to illustrate the relationship between successive iterations; the iteration values are in the right margin of the plot.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT22 SECTION &quot;The Newton-Raphson Method for Root-finding&quot; [1-627] --&gt;
&lt;h2 class=&quot;sectionedit23&quot;&gt;&lt;a name=&quot;animation&quot; id=&quot;animation&quot;&gt;Animation&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
   &lt;div class=&quot;scianimator&quot;&gt;&lt;div id=&quot;animation_nm&quot; style=&quot;display: inline-block;&quot;&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
    (function($) {
        $(document).ready(function() {

        $('#animation_nm').scianimator({
            'images': ['http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/1.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/2.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/3.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/4.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/5.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/6.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/7.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/8.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/9.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/10.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/11.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/12.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/13.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/14.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/15.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/16.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/17.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/18.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/19.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/20.png', 'http://s288.photobucket.com/albums/ll181/xieyihui/newton_s_method/21.png', ],
            'delay': 1000,
            'controls': ['first', 'previous', 'play', 'next', 'last', 'loop', 'speed'], 
        });
        
        });
    })(jQuery);
    &lt;/script&gt;

Go along with the tangent lines and iterate.
&amp;lt;/ani&amp;gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT23 SECTION &quot;Animation&quot; [628-835] --&gt;
&lt;h2 class=&quot;sectionedit24&quot;&gt;&lt;a name=&quot;r_code&quot; id=&quot;r_code&quot;&gt;R code&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
&lt;pre class=&quot;brush: r&quot;&gt;
library(animation)
saveHTML({
    ani.options(nmax = 100, interval = 1)
    par(mar = c(3, 3, 1, 1.5), mgp = c(1.5, 0.5, 0), pch = 19)
    newton.method(function(x) 5 * x^3 - 7 * x^2 - 40 * x + 100, 
        7.15, c(-6.2, 7.1), main = &quot;&quot;)
}, img.name = &quot;newton_method&quot;, htmlfile = &quot;newton_method.html&quot;, 
    ani.height = 500, ani.width = 500, outdir = getwd(), title = &quot;Demonstration of the Newton-Raphson Method&quot;, 
    description = c(&quot;Go along with the tangent lines and iterate.&quot;))
&lt;/pre&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT24 SECTION &quot;R code&quot; [836-1383] --&gt;
&lt;h2 class=&quot;sectionedit25&quot;&gt;&lt;a name=&quot;further_reading&quot; id=&quot;further_reading&quot;&gt;Further Reading&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Newton%27s_method&quot; class=&quot;urlextern&quot; target=&quot;_blank&quot; title=&quot;http://en.wikipedia.org/wiki/Newton%27s_method&quot;  rel=&quot;nofollow&quot;&gt;http://en.wikipedia.org/wiki/Newton%27s_method&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT25 SECTION &quot;Further Reading&quot; [1384-] --&gt;</description>
            <author>nan.xiao</author>
        <category>compstat</category>
            <pubDate>Mon, 31 Jan 2011 08:17:42 -0700</pubDate>
        </item>
    </channel>
</rss>

