<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/running-plot-and-simulated-annealing/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://xianblog.wordpress.com/2018/12/14/running-plot-and-simulated-annealing/"> R – Xi'an's Og</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a rel="nofollow" href="https://xianblog.files.wordpress.com/2018/12/temp6.png" target="_blank"><img data-orig-file="https://xianblog.files.wordpress.com/2018/12/temp6.png" data-orig-size="1276,296" data-medium-file="https://xianblog.files.wordpress.com/2018/12/temp6.png?w=300" data-attachment-id="37825" data-image-meta="{" data-image-description="" src="https://xianblog.files.wordpress.com/2018/12/temp6.png?w=450&h=104&fit=450%2C104&resize=450%2C104" data-permalink="https://xianblog.wordpress.com/2018/12/14/running-plot-and-simulated-annealing/temp-21/" data-large-file="https://xianblog.files.wordpress.com/2018/12/temp6.png?w=450&amp;h=104&amp;fit=450%2C104&amp;resize=450%2C104" alt="" data-image-title="temp" sizes="(max-width: 450px) 100vw, 450px" width="450" data-comments-opened="1" class="wp-image-37825" data-recalc-dims="1" height="104"></a><strong>L</strong>ast weekend, I <a rel="nofollow" href="https://support.rstudio.com/hc/en-us/community/posts/200661917-Graph-does-not-update-until-loop-completion" target="_blank">found out a way</a> to run updated plots within a loop in R, when calling plot() within the loop was never updated in real time. The above suggestion of including a Sys.sleep(0.25) worked perfectly on a simulated annealing example for determining the <a rel="nofollow" href="https://fivethirtyeight.com/features/the-little-mathematically-determined-house-on-the-prairie/" target="_blank">most dispersed points in a unit disc</a>.</p>
<p><a rel="nofollow" href="https://xianblog.files.wordpress.com/2018/12/temp7.png" target="_blank"><img data-orig-file="https://xianblog.files.wordpress.com/2018/12/temp7.png" data-orig-size="2480,1046" data-medium-file="https://xianblog.files.wordpress.com/2018/12/temp7.png?w=300" data-attachment-id="37826" data-image-meta="{" data-image-description="" src="https://xianblog.files.wordpress.com/2018/12/temp7.png?w=450&h=230&fit=545%2C230" data-permalink="https://xianblog.wordpress.com/2018/12/14/running-plot-and-simulated-annealing/temp-22/" data-large-file="https://xianblog.files.wordpress.com/2018/12/temp7.png?w=450&amp;h=230&amp;fit=545%2C230" alt="" data-image-title="temp" sizes="(max-width: 545px) 100vw, 545px" data-comments-opened="1" class="wp-image-37826" data-recalc-dims="1"></a></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://xianblog.wordpress.com/2018/12/14/running-plot-and-simulated-annealing/"> R – Xi'an's Og</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 rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/CKt4Lx3jGz8" height="1"></a></div>