<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/crochet-patterns/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://fronkonstin.com/2018/10/14/crochet-patterns/"> R – Fronkonstin</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<div class="twitter-share"><a rel="nofollow" href="https://twitter.com/intent/tweet?url=https%3A%2F%2Ffronkonstin.com%2F2018%2F10%2F14%2Fcrochet-patterns%2F&via=aschinchon" class="twitter-share-button" target="_blank">Tweet</a></div>
<blockquote>
<p>¡Ay que ver cómo se estropean los cuerpos! (Pilar, my beloved grandmother)</p>
</blockquote>
<p>My grandmother was a master of sewing. When she was young, she worked as dressmaker, and her profession became a hobby with the passage of time. I remember her doing cross-stitch, embroidering tablecloths and doing crochet. I have some of her artworks at home. She spent many hours patiently in silence, moving her knitting needles: my grandmother didn’t use to get bored. As she did with her threads, this drawing is done linking lines:</p>
<p><img data-orig-file="https://i1.wp.com/fronkonstin.com/wp-content/uploads/2018/09/vertigo0.png?fit=2400%2C2400&amp;ssl=1" data-orig-size="2400,2400" data-medium-file="https://i1.wp.com/fronkonstin.com/wp-content/uploads/2018/09/vertigo0.png?fit=300%2C300&amp;ssl=1" data-attachment-id="4651" data-image-meta="{" data-image-description="" src="https://i1.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_00.png?resize=604%2C604&ssl=1" data-permalink="https://fronkonstin.com/2018/09/06/tweetable-mathematical-art-with-r/vertigo0/" data-large-file="https://i1.wp.com/fronkonstin.com/wp-content/uploads/2018/09/vertigo0.png?fit=604%2C604&amp;ssl=1" alt="" data-image-title="vertigo0" width="450" data-comments-opened="1" class="wp-image-4651" data-recalc-dims="1"></p>
<p>You can find the code <a rel="nofollow" href="https://github.com/aschinchon/crochet-patterns" target="_blank">here</a>. If you check it, you will see that the <em>stitches</em> of drawings are defined by a function that I called <code>pattern</code>, which depends on some parameters that I define randomly. This is why each time you run it, you will get a different drawing:</p>
<p><img src="https://i2.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_01.png?w=604&ssl=1" data-recalc-dims="1"></p>
<p><img src="https://i2.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_02.png?w=604&ssl=1" data-recalc-dims="1"></p>
<p><img src="https://i2.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_03.png?w=604&ssl=1" data-recalc-dims="1"></p>
<p><img src="https://i0.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_04.png?w=604&ssl=1" data-recalc-dims="1"></p>
<p><img src="https://i0.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_05.png?w=604&ssl=1" data-recalc-dims="1"></p>
<p><img src="https://i2.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_10.png?w=604&ssl=1" data-recalc-dims="1"></p>
<p><img src="https://i1.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_07.png?w=604&ssl=1" data-recalc-dims="1"></p>
<p><img src="https://i2.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_08.png?w=604&ssl=1" data-recalc-dims="1"></p>
<p><img src="https://i0.wp.com/fronkonstin.com/wp-content/uploads/2018/10/crochet_09.png?w=604&ssl=1" data-recalc-dims="1"></p>
<div></div>
<p>From the technical side, I used <code>accumulate</code> function from <code>purrr</code> package, which makes loops faster and more efficient.</p>
<p>Drawings remind me those I created <a rel="nofollow" href="https://fronkonstin.com/2015/12/14/phyllotaxis-by-shiny/" target="_blank">here</a>, imitating the way that plants arrange their leaves. If you are interesting in using R to create art, check out <a rel="nofollow" href="https://www.datacamp.com/projects/62?tap_a=5644-dce66f&tap_s=10907-287229" target="_blank">this free DataCamp’s project</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://fronkonstin.com/2018/10/14/crochet-patterns/"> R – Fronkonstin</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/Dph3VPVtGWA" height="1"></a></div>