friendly / VCDR

Visualizing categorical data with R
0 stars 0 forks source link

Figure 3.24: vcd::rootogram now gives an error #65

Closed friendly closed 8 years ago

friendly commented 8 years ago

Just checking what I hoped would be the final pass on the book. In Example 3.23, the code to produce Figure 3.24 now gives the error:

Error in data.frame(observed = as.vector(object), expected = as.vector(fitted),
: arguments imply differing number of rows: 13, 12

I don't know how long this has been the case. I'm using vcd_1.4-2 from the 2015-10-18 R-Forge rev.

friendly commented 8 years ago

The code for this example is in ch03/R/sax-glm.R. The call to vcd::rootogram() works OK in a fresh R console, so don't know what is causing this in the book.

davidjohannesmeyer commented 8 years ago

Mysterious. I can't see why the code in the book should not work.

On 2015-10-30 20:13, Michael Friendly wrote:

The code for this example is in |ch03/R/sax-glm.R|. The call to |vcd::rootogram()| works OK in a fresh R console, so don't know what is causing this in the book.

— Reply to this email directly or view it on GitHub https://github.com/friendly/VCDR/issues/65#issuecomment-152621580.

davidjohannesmeyer commented 8 years ago

Not reproducible, but fixed by direct inclusion of the diagram. So closed for now.