By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData Collective
  • Analytics
    AnalyticsShow More
    data analytics in sports industry
    Here’s How Data Analytics In Sports Is Changing The Game
    6 Min Read
    data analytics on nursing career
    Advances in Data Analytics Are Rapidly Transforming Nursing
    8 Min Read
    data analytics reveals the benefits of MBA
    Data Analytics Technology Proves Benefits of an MBA
    9 Min Read
    data-driven image seo
    Data Analytics Helps Marketers Substantially Boost Image SEO
    8 Min Read
    construction analytics
    5 Benefits of Analytics to Manage Commercial Construction
    5 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-23 SmartData Collective. All Rights Reserved.
Reading: Paul Murrell on Incorporating Images in R Charts
Share
Notification Show More
Latest News
data analytics in sports industry
Here’s How Data Analytics In Sports Is Changing The Game
Big Data
data analytics on nursing career
Advances in Data Analytics Are Rapidly Transforming Nursing
Analytics
data analytics reveals the benefits of MBA
Data Analytics Technology Proves Benefits of an MBA
Analytics
anti-spoofing tips
Anti-Spoofing is Crucial for Data-Driven Businesses
Security
ai in software development
3 AI-Based Strategies to Develop Software in Uncertain Times
Software
Aa
SmartData Collective
Aa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Big Data > Data Visualization > Paul Murrell on Incorporating Images in R Charts
Data VisualizationR Programming Language

Paul Murrell on Incorporating Images in R Charts

DavidMSmith
Last updated: 2011/07/15 at 12:26 PM
DavidMSmith
3 Min Read
SHARE

Thanks to everyone at who attended this week’s Bay Area R User Group meeting, and a special thanks to our hosts Socialize (a company that makes a mobile SDK for application developers that increases user engagement) who were very generous in letting the group use their San Francisco digs for the meeting. Reflexive thanks also go to the Revolution Analytics community team for spons

Thanks to everyone at who attended this week’s Bay Area R User Group meeting, and a special thanks to our hosts Socialize (a company that makes a mobile SDK for application developers that increases user engagement) who were very generous in letting the group use their San Francisco digs for the meeting. Reflexive thanks also go to the Revolution Analytics community team for sponsoring BARUG and providing refreshments.

At the meeting, R core member Paul Murrell gave a wonderful talk about the new raster image support available in recent versions of R (since version 2.11.0). Raster graphics support makes it easy in R to incorporate images into charts created like R. So if you want to incorporate a photo background into an infographic, or connect a series of PNG icons into a network diagram, or use an image as a scatterplot mark, all of that is now possible in R. You lay out images any way you like, in fact, as Paul showed:

Photo album in R

More Read

data visualization for small business

Data Visualization Boosts Business Scalability with Sales Mapping

Choosing the Right Programming Language for A Corporate Database
5 Best Practices for Extracting, Analyzing, and Visualizing Data
10 Important Ways Data Visualization Can Benefit Your Content Strategy
How to Bring Presentation Data to Life with Powered Template

(Paul’s slides aren’t on-line yet, hence the phone camera shot above. I’ll link to his slides here when they’re available.) As an added bonus, raster images are much more efficient than the “old” way of doing things in R (by drawing lots of little squares, one by one). As a result, plots that contain raster images — like image plots and heatmaps — render much faster in R, and create smaller and higher-quality exported image files. (If you’re a regular user of the image function in R, for example, you should make a habit of using the new useRaster=TRUE option.)

The ‘a-ha’ moment for me in the talk, though, was that these facilities now make R a scriptable alternative to image editors like ImageMagick or GIMP. Paul showed a great example of producing an infographic by defining an area to cut-and-paste out using a polygonal mask, and then colour-correcting the image within that shape (to create a transparent overlay). Sure, all of these things are easy to do in image-processing tools, but by doing it in an R script it makes the process automated and repeatable — perfect if you want to recreate an infographic on a daily basis with updated data, for example.

You can see some code examples working with images in R from Chapter 18 of the forthcoming second edition of Paul’s book, R Graphics.

DavidMSmith July 15, 2011
Share this Article
Facebook Twitter Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

data analytics in sports industry
Here’s How Data Analytics In Sports Is Changing The Game
Big Data
data analytics on nursing career
Advances in Data Analytics Are Rapidly Transforming Nursing
Analytics
data analytics reveals the benefits of MBA
Data Analytics Technology Proves Benefits of an MBA
Analytics
anti-spoofing tips
Anti-Spoofing is Crucial for Data-Driven Businesses
Security

Stay Connected

1.2k Followers Like
33.7k Followers Follow
222 Followers Pin

You Might also Like

data visualization for small business
Data Visualization

Data Visualization Boosts Business Scalability with Sales Mapping

7 Min Read
programming languages for corporate database
ExclusiveProgrammingR Programming Language

Choosing the Right Programming Language for A Corporate Database

6 Min Read
big data visualization
Data Visualization

5 Best Practices for Extracting, Analyzing, and Visualizing Data

6 Min Read
Data Visualization
Data Visualization

10 Important Ways Data Visualization Can Benefit Your Content Strategy

13 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
data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data

Quick Link

  • About
  • Contact
  • Privacy
Follow US

© 2008-23 SmartData Collective. All Rights Reserved.

Removed from reading list

Undo
Go to mobile version
Welcome Back!

Sign in to your account

Lost your password?