Skip to content

weird error with contourplot

1 message · Cable, Samuel B Civ USAF AFMC AFRL/RVBXI

#
Sorry if I am cluttering up this list with too many rank beginner
questions.  But I *am* a rank beginner, and I am at my wit's end with
this one:

I have a data frame df, with components x,y,z.  This command to make a
contour plot with lattice graphics works just fine:
Then I try
And it dies on me with the error:

Error in unit(x, default.units) : 'x' and 'units' must have length > 0


I have done maybe a hundred contour plots in this same exact way, and
have never seen this error before.  And it seems to me that adding the
flag region=T should be a benign thing to do.  I have no idea what it
causing the problem.  Anyone see what I'm doing wrong?  Thanks!

--Sam Cable