Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3275340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:07:59+00:00 2026-05-17T19:07:59+00:00

I am revising a paper for submission and would like to replace the old

  • 0

I am revising a paper for submission and would like to replace the old lattice graphics with shiny new ggplot2 versions. However, I run into compatibility problems between ggplot2 and two packages that are absolutely crucial for my analyses, coin and arm. When executing the following example from the manual

qplot(sleep_rem / sleep_total, awake, data = msleep)

I get an error message saying:

   Error in function (classes, fdef, mtable)  : 
   unable to find an inherited method for function "empty", for signature "data.frame"

as soon as either coin or arm are loaded.

Here are the details:

Running R 2.10.1, empty .RData file

require(ggplot2)
require(xtable)
require(MASS)
require(gdata)
require(car)
require(Hmisc)
require(psych)

qplot(sleep_rem / sleep_total, awake, data = msleep)

require(coin)
qplot(sleep_rem / sleep_total, awake, data = msleep)

require(arm)
qplot(sleep_rem / sleep_total, awake, data = msleep)

Is this reproducible with R 2.12? If not, might it be worth upgrading? I must confess I am loath to update a working system, especially when on a tight deadline.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:08:00+00:00Added an answer on May 17, 2026 at 7:08 pm

    It’s only the coin package that seems incompatible. Reason is that one of the packages loaded together with coin (modeltools to be exact) also contains a function empty() that masks the function empty() of plyr. Updating to R 2.12 won’t change a darn thing, as both packages are contributed by other authors. You should mail the author of the ggplot package and tell him to specify plyr::empty() in his code. Or even the guys from the plyr package, as the problem might actually be there.

    A possible hack could be :

    require(coin)
    empty <- plyr::empty
    qplot(sleep_rem / sleep_total, awake, data = msleep)
    rm(empty)
    

    This works on 2.11.1 using following data frame:

    msleep <- data.frame(
        sleep_rem=c(1,2,3,4,5),
        sleep_total=c(10,20,30,40,50),
        awake=c(5,4,3,2,1)
    )
    

    Make sure you remove empty from the workspace right after plotting. Otherwise you might get trouble with the other packages that are loaded. You’ll have to do that with every plot you make after you loaded the package coin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm revising the navigation of my news system and would like to do so
I am revising some very old (10 years) C code. The code compiles on
While revising some old c++ code, I ran across several bitflags defined as enums.
Revising for php and cant seem to get this to print the values out
Im revising my auto-complete style search script. The site has 2 categories... movies and
I need some help revising this. It keeps only displaying 0s as the temp.
I'm revising my C++ skills for a machine learning project. So, I was working
I am revising one of our in-house RPMs that adds to the nagios package.
I'm revising for an upcoming Haskell exam and I don't understand one of the
So I am revising for an exam and have struck a big rock in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.