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 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
    data analytics for trademark registration
    Optimizing Trademark Registration with Data Analytics
    6 Min Read
    data analytics for finding zip codes
    Unlocking Zip Code Insights with Data Analytics
    6 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

Image
Alpha Testing RevoScaleR Running in Hadoop
Two Talks on Data Science, Big Data and R
Population health management with RevoScaleR
Text Analytics for Telecommunications – Part 1
Simple Tools for Building a Recommendation Engine

(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

agenic ai
How Businesses Are Using AI to Make Smarter, Faster Decisions
Artificial Intelligence Exclusive
accountant using ai
AI Improves Integrity in Corporate Accounting
Exclusive
ai and law enforcement
Forensic AI Technology is Doing Wonders for Law Enforcement
Artificial Intelligence Exclusive
langgraph and genai
LangGraph Orchestrator Agents: Streamlining AI Workflow Automation
Artificial Intelligence Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

CIO.com: R is a Big Data open-source technology to watch

1 Min Read

R Integrated Throughout the Enterprise Analytics Stack

10 Min Read

Some R Package Updates

1 Min Read

Participate in the 2011 Rexer Data Mining Survey

2 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 and chatbots
Chatbots and SEO: How Can Chatbots Improve Your SEO Ranking?
Artificial Intelligence Chatbots Exclusive
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?