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
    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
    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
  • 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

Best of 2008: Innovation
Get Smart about Your Data Quality Projects
Reflecting Istanbul
What Can Academics Learn From Market Researchers?
Virtumondo/Virtumundo – virus hunt, continued

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

image fx (2)
Monitoring Data Without Turning into Big Brother
Big Data Exclusive
image fx (71)
The Power of AI for Personalization in Email
Artificial Intelligence Exclusive Marketing
image fx (67)
Improving LinkedIn Ad Strategies with Data Analytics
Analytics Big Data Exclusive Software
big data and remote work
Data Helps Speech-Language Pathologists Deliver Better Results
Analytics Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

10 R Packages Every Data Scientist Should Know About

1 Min Read

Interactive stock visualizations with R

3 Min Read

ggplot2 and the grammar of graphics

4 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 chatbot
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
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?