Cookies help us display personalized product recommendations and ensure you have great shopping experience.

By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    image fx (67)
    Improving LinkedIn Ad Strategies with Data Analytics
    9 Min Read
    big data and remote work
    Data Helps Speech-Language Pathologists Deliver Better Results
    6 Min Read
    data driven insights
    How Data-Driven Insights Are Addressing Gaps in Patient Communication and Equity
    8 Min Read
    pexels pavel danilyuk 8112119
    Data Analytics Is Revolutionizing Medical Credentialing
    8 Min Read
    data and seo
    Maximize SEO Success with Powerful Data Analytics Insights
    8 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: A bit of fun with R
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > R Programming Language > A bit of fun with R
R Programming Language

A bit of fun with R

DavidMSmith
DavidMSmith
2 Min Read
SHARE

R isn’t just about serious things like model inference and prediction intervals and big analytics. Sometimes, R lets its hair down and just does weird and wonderful things because … well just because. For example, with a package from Paulo Sonego, it can display your favourite XKCD cartoon:

R isn’t just about serious things like model inference and prediction intervals and big analytics. Sometimes, R lets its hair down and just does weird and wonderful things because … well just because. For example, with a package from Paulo Sonego, it can display your favourite XKCD cartoon:

> install.packages("RXKCD", repos="http://R-Forge.R-project.org",type="source")
> searchXKCD("support")
num title
1 8 Red spiders
2 278 Black Hat Support
3 384 The Drake Equation
4 480 Spore
5 554 Not Enough Work
6 619 Supported Features
7 644 Surgery
8 745 Dyslexics
9 806 Tech Support
10 818 Illness
11 838 Incident
12 627 Tech Support Cheat Sheet
> getXKCD(806)

Tech_support

More Read

3-D Animation of the Changing Antarctic Ice Sheet
Data Visualization Doesn’t Need to be Biased
High-Performing Predictive Analytics with R and Hadoop
ggplot2 for Big Data
Simple Inter-row Computation: esProc Keeps It Simple!

(Hmm, maybe that’s not so frivolous after all. The searchXKCD function was perfect for finding one of my favourite XKCD comics, and the source code for getXKCD is a great example of doing JSON queries from R and also of using raster images.)

Here’s another example of a bit of fun with R. Neil Gunther of Performance Dynamics shows us how to create a winking pink elephant with R:

Winking elephant

(Hmm, maybe that isn’t so frivolous after all. The code that generates that image is actually a really good example of doing complex arithmetic in R — the elephant is based on a Fourier transform generated by just 5 parameters — and also provides a good example of using the animation package to create animated GIFs in R.)

What other fun things do you use R for? Let us know in the comments.

Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

image fx (2)
Monitoring Data Without Turning into Big Brother
Big Data Exclusive
image fx (71)
The Power of AI for Personalization in Email
Artificial Intelligence Exclusive Marketing
image fx (67)
Improving LinkedIn Ad Strategies with Data Analytics
Analytics Big Data Exclusive Software
big data and remote work
Data Helps Speech-Language Pathologists Deliver Better Results
Analytics Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

Webinar on Portfolio Rebalancing with R and Sybase

2 Min Read

Sentiment Analysis for Airlines via Twitter

2 Min Read

Where to Find Data to Use with R

6 Min Read

Using R to Create a Logo: Simple

3 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

ai is improving the safety of cars
From Bolts to Bots: How AI Is Fortifying the Automotive Industry
Artificial Intelligence
ai in ecommerce
Artificial Intelligence for eCommerce: A Closer Look
Artificial Intelligence

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-25 SmartData Collective. All Rights Reserved.
Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?