If you are reading this blog, probably you already know how wonderful is R to prepare, analyse, and visualise data, that’s the reason why we use it and we love it. But after a long day (or even night) of hard work, your data analysis is finally ready, and you still have time and energy for something to disconnect… So what to do? You can still use R! Today we will review some code or libraries to do several things beyond torturing your data.
- Alarm. The library beepr can play a sound to let you know is time to stop your break, or for example, you can include it at the end of a long iteration process so your function warns you when is finished.
- Sound synthesizer. Speaking about music, have you ever wondered how your favourite data set sounds? Now you can find out with the package playitbyr. You will need to install first the
csoundlibrary, and the instructions are here
- Optical Illusions. If you feel creative after that, maybe you can try your artistic talent and create some optical illusions with R and ggplot. You can find the following example and others here :
- Fortune. What about acquiring some wisdom or predict your fortune? You can now do it with the package fortunes
- Games. Maybe R is not as good as your game console, but is also possible to play a few games in your favorite language (I mean R, not Spanish!). You can play sudoku, mine sweeper, or gomoku (Gomoku? I’ve never played that…). These two last games are from the library
fun, where you can also find other utilities such as a random password generation, an Alzheimer’s test, or a command to shutdown the computer from R.
- Meme generator. If you have been too busy writing R packages during the last years maybe you didn’t notice that nowadays the internet is full of “memes” (those images combining a picture and a ‘funny’ message, although the concept is wider than that). Now is possible to create memes directly from R with the meme package (Requires installation from github using the devtools package):
- Tweet. Share with the world the happiness of being an UseR!, and publish something in twitter using the #rstats hashtag. The
- Send an email. To finish, you can also send an email from R, for example, to make your algorithm to send you an email when is ready, and including the main results. I’m sorry I said before that we will not speak about “serious” work, but hey! you can send an email to anyone :). The package is called mailR, and you need to know the smtp server of your email. In the case of gmail, the code is:
Alarms, tweets, or emails can make your work in R more productive while you can also have some fun playing sudoku or creating a meme. What other uses of R not related with data analysis do you know? Please share them!