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
    data analytics and truck accident claims
    How Data Analytics Reduces Truck Accidents and Speeds Up Claims
    7 Min Read
    predictive analytics for interior designers
    Interior Designers Boost Profits with Predictive Analytics
    8 Min Read
    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
  • 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

Resampling Data in Hadoop with RHadoop
Paul Murrell on Incorporating Images in R Charts
Tracking Hurricane Sandy with Open Data and R
Benchmarking bigglm
Data Mining Book Review: Data Mining with R

(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

data analytics and truck accident claims
How Data Analytics Reduces Truck Accidents and Speeds Up Claims
Analytics Big Data Exclusive
predictive analytics for interior designers
Interior Designers Boost Profits with Predictive Analytics
Analytics Exclusive Predictive Analytics
big data and cybercrime
Stopping Lateral Movement in a Data-Heavy, Edge-First World
Big Data Exclusive
AI and data mining
What the Rise of AI Web Scrapers Means for Data Teams
Artificial Intelligence Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

The R Graph Gallery Goes Social

1 Min Read

Course: Financial Data Modeling and Analysis in R

1 Min Read

An Analysis of the R-help Mailing List

3 Min Read

R Chart featured in Facebook IPO

1 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 chatbot
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
Chatbots
data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data

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?