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: Lattice and ggplot graphics, side by side
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Uncategorized > Lattice and ggplot graphics, side by side
Uncategorized

Lattice and ggplot graphics, side by side

DavidMSmith
DavidMSmith
3 Min Read
SHARE

One of the confusing things about R for newcomers is the graphics system. Or rather, systems: there are three major ways of creating a graph in R. There’s the base graphics system, which was adopted from S and has been in R from the beginning, and is documented in the Introduction to R manual. But all the cool R programmers these days use one of the newfangled modern systems: either lattice or ggplot2 (both of which are built on the “grid” graphics subsystem).

I’m often asked which of these are better to use, and it’s a hard question to answer. Lattice is probably easier to learn, but once you get over the learning curve ggplot2 has a lot of elegance and power.

To help you decide, the awesome blog Learning R is working through Deepayan Sarkar’s book Lattice: Multivariate Graphics with R and is reproducing the graphics therein using ggplot2. This side-by-side comparison of the same graph done in the two packages is a great way to get a sense of the similarities and differences between the two methods, and to help decide which package is right for you. Be sure to check out all the parts in this multi-part series.

More Read

Comments I Read: Jeremy Pickens
New Revenue Recognition Rules Require Software
Baby boomers and Gen Y – using social networking to bridge the gap
Xactly Delivers New Inspiration for Sales to Maximize its Potential
Writing a Book on Faceted Search

Learning R: ggplot2 Version of Figures in “Lattice: Multivariate …


One of the confusing things about R for newcomers is the graphics system. Or rather, systems: there are three major ways of creating a graph in R. There’s the base graphics system, which was adopted from S and has been in R from the beginning, and is documented in the Introduction to R manual. But all the cool R programmers these days use one of the newfangled modern systems: either lattice or ggplot2 (both of which are built on the “grid” graphics subsystem).

I’m often asked which of these are better to use, and it’s a hard question to answer. Lattice is probably easier to learn, but once you get over the learning curve ggplot2 has a lot of elegance and power.

To help you decide, the awesome blog Learning R is working through Deepayan Sarkar’s book Lattice: Multivariate Graphics with R and is reproducing the graphics therein using ggplot2. This side-by-side comparison of the same graph done in the two packages is a great way to get a sense of the similarities and differences between the two methods, and to help decide which package is right for you. Be sure to check out all the parts in this multi-part series.

Learning R: ggplot2 Version of Figures in “Lattice: Multivariate Data Visualization with R” (Part 1) (Part 2) (Part 3)

Link to original post

TAGGED:ggplot2
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

ggplot2 and the grammar of graphics

4 Min Read

Interactive stock visualizations with R

3 Min Read

10 R Packages Every Data Scientist Should Know About

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 is improving the safety of cars
From Bolts to Bots: How AI Is Fortifying the Automotive Industry
Artificial Intelligence
AI chatbots
AI Chatbots Can Help Retailers Convert Live Broadcast Viewers into Sales!
Chatbots

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?