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

Don’t do list for 2010
Will the Real Information Architect Please Stand Up?
A Reply to All PR People
Improving Communication on Data Governance Teams
NBC’s Olympics: Real time vs. prime time

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

agenic ai
Agenic AI is Paying Huge Dividends for Companies Trying to Improve Decision-Making
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

Interactive stock visualizations with R

3 Min Read

10 R Packages Every Data Scientist Should Know About

1 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 chatbot
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
Chatbots
ai in ecommerce
Artificial Intelligence for eCommerce: A Closer Look
Artificial Intelligence

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?