<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/shadow-text-effect-in-grid-and-ggplot2-graphics/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://guangchuangyu.github.io/2017/11/shadow-text-effect-in-grid-and-ggplot2-graphics/"> R on Guangchuang YU</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>After the release of <code>meme</code> package, I received several feedbacks from users.</p>
<p>The most usefule one is <a rel="nofollow" href="http://disq.us/p/1n9zi69" target="_blank">the comment</a> on my blog post:</p>
<blockquote>
<p>Sercan Kahveci</p>
<p>Greetings Mr. Yu,</p>
<p>I am very happy that this package exists. Thank you for making it! I would like to request a feature, to ensure the package is able to compete with professional meme-creation tools like memegenerator and paint.net. Since memes often use the font Impact, in white and with black outline, I believe the package would be more powerful if it also did that automatically.</p>
<p>Regards,</p>
<p>Sercan Kahveci, MSc</p>
<p>Content creator at Questionable Research Memes on Facebook<br>
<a rel="nofollow" href="https://www.facebook.com/QResearchMemes/" target="_blank">https://www.facebook.com/QResearchMemes/</a></p>
</blockquote>
<p>The words, ‘compete with professional meme-creation tools’, stimulated me to develop text plotting with background outline effect.</p>
<p>Now this feature is available in <a rel="nofollow" href="https://cran.r-project.org/package=meme" target="_blank">meme</a> v>=0.0.7, which can be downloaded from CRAN.</p>

<p>Here is an example:</p>
<pre><code>library(meme)
u &lt;- system.file(&quot;angry8.jpg&quot;, package=&quot;meme&quot;)
meme(u, &quot;code&quot;, &quot;all the things!&quot;)
</code></pre>
<p><img alt="" src="https://i1.wp.com/guangchuangyu.github.io/blog_images/R/meme/shadowtext.png?w=456&ssl=1" data-recalc-dims="1"></p>
<hr>
<p>To make this <strong>shadow text</strong> feature available to the R community, I created another package, <a rel="nofollow" href="https://cran.r-project.org/web/packages/shadowtext/" target="_blank">shadowtext</a>, that creates/draws text grob with background shadow for <code>grid</code> and <code>ggplot2</code>. If you are interesting, please refer to the <a rel="nofollow" href="https://cran.r-project.org/web/packages/shadowtext/vignettes/shadowtext.html" target="_blank">online vignette</a>.</p>
<p><img alt="" src="https://i1.wp.com/guangchuangyu.github.io/blog_images/R/shadowtext/shadowtext_files/figure-markdown_strict/unnamed-chunk-2-1.png?w=456&ssl=1" data-recalc-dims="1"></p>
<p><img alt="" src="https://i1.wp.com/guangchuangyu.github.io/blog_images/R/shadowtext/shadowtext_files/figure-markdown_strict/unnamed-chunk-3-2.png?w=456&ssl=1" 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://guangchuangyu.github.io/2017/11/shadow-text-effect-in-grid-and-ggplot2-graphics/"> R on Guangchuang YU</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 width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/_twbU_o2u-Q" height="1"></a></div>