By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    data Analytics instagram stories
    Data Analytics Helps Marketers Make the Most of Instagram Stories
    15 Min Read
    analyst,women,looking,at,kpi,data,on,computer,screen
    What to Know Before Recruiting an Analyst to Handle Company Data
    6 Min Read
    AI analytics
    AI-Based Analytics Are Changing the Future of Credit Cards
    6 Min Read
    data overload showing data analytics
    How Does Next-Gen SIEM Prevent Data Overload For Security Analysts?
    8 Min Read
    hire a marketing agency with a background in data analytics
    5 Reasons to Hire a Marketing Agency that Knows Data Analytics
    7 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-23 SmartData Collective. All Rights Reserved.
Reading: A bit of fun with R
Share
Notification Show More
Aa
SmartData CollectiveSmartData Collective
Aa
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
Last updated: 2011/07/25 at 6:12 AM
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

programming languages for corporate database

Choosing the Right Programming Language for A Corporate Database

5 Free Programming and Machine Learning Books for Data Scientists
Is R the Next Generation Programming Language for Big Data?
Apache Drill vs. Apache Spark: What’s The Right Tool for the Job?
What Angry Birds Can Teach Us About Analytics

(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.

DavidMSmith July 25, 2011
Share This Article
Facebook Twitter Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

ai low code frameworks
AI Can Help Accelerate Development with Low-Code Frameworks
Artificial Intelligence
data Analytics instagram stories
Data Analytics Helps Marketers Make the Most of Instagram Stories
Analytics
data breaches
How Hospital Security Breaches Devastate Local Communities
Policy and Governance
analyst,women,looking,at,kpi,data,on,computer,screen
What to Know Before Recruiting an Analyst to Handle Company Data
Analytics

Stay Connected

1.2k Followers Like
33.7k Followers Follow
222 Followers Pin

You Might also Like

programming languages for corporate database
ExclusiveProgrammingR Programming Language

Choosing the Right Programming Language for A Corporate Database

6 Min Read
free python machine learning ebooks
Big DataBusiness IntelligenceData ScienceR Programming Language

5 Free Programming and Machine Learning Books for Data Scientists

8 Min Read
Next Generation Programming Language for Big Data
Big DataComputingExclusiveITR Programming Language

Is R the Next Generation Programming Language for Big Data?

8 Min Read
Image
Big DataData MiningHadoopR Programming LanguageSQLUnstructured Data

Apache Drill vs. Apache Spark: What’s The Right Tool for the Job?

5 Min Read

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

data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data
giveaway chatbots
How To Get An Award Winning Giveaway Bot
Big Data Chatbots Exclusive

Quick Link

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

Sign in to your account

Lost your password?