[R] xYplot problem
Deepayan Sarkar
deepayan.sarkar at gmail.com
Thu Dec 13 00:42:50 CET 2007
On 12/12/07, Erin Berryman <erinberryman at vandals.uidaho.edu> wrote:
>
> On Dec 12, 2007, at 1:37 PM, Deepayan Sarkar wrote:
>
> > On 12/12/07, Erin Berryman <erinberryman at vandals.uidaho.edu> wrote:
> >> Dear R community,
> >>
> >> Since upgrading to R v.2.6.1 and re-installing package Hmisc (binary
> >> for Mac OS X v.3.4-3), I have been getting a error when trying to
> >> make xYplots:
> >>
> >>> plotcv<-c(34.88, 41.51, 45.81, 51.05, 51.66)
> >>> plotcv.se<-c(2.406551, 3.071291, 4.331407, 3.213873, 4.838150)
> >>> month<-c(6, 7, 8, 9, 10)
> >>> library(Hmisc)
> >>> xYplot(Cbind(plotcv, plotcv + plotcv.se, plotcv - plotcv.se) ~
> >> month)
> >>
> >> Error in xyplot.formula(formula = Cbind(plotcv, plotcv + plotcv.se,
> >> plotcv - :
> >> argument "x" is missing, with no default
> >>
> >> I've used xYplots extensively in the past with no problems.
> >>
> >> I am using Mac OS X.4.10 (Tiger).
> >>
> >>> version
> >> platform powerpc-apple-darwin8.10.1
> >> arch powerpc
> >> os darwin8.10.1
> >> system powerpc, darwin8.10.1
> >> status
> >> major 2
> >> minor 6.1
> >> year 2007
> >> month 11
> >> day 26
> >> svn rev 43537
> >> language R
> >> version.string R version 2.6.1 (2007-11-26)
> >>
> >> Any help would be greatly appreciated!
> >
> > Are you sure you are actually _using_ the updated version? That is,
> > did you try this in a fresh R session (and not the one in which you
> > updated)?
> >
>
> Yes:
>
> R version 2.6.1 (2007-11-26)
> Copyright (C) 2007 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
>
> Perhaps some mistake occurred when updating?
I meant the version of Hmisc, but that should be fine too. Anyway, on
my installation the definition of xYplot looks fine (and works for
your example):
> xYplot
function (formula, data = sys.frame(sys.parent()), groups, subset,
xlab = NULL, ylab = NULL, ylim = NULL, panel = panel.xYplot,
prepanel = prepanel.xYplot, scales = NULL, minor.ticks = NULL,
...)
{
[...]
do.call("xyplot", c(list(x = formula, data = data, prepanel = prepanel,
panel = panel), if (length(ylab)) list(ylab = ylab),
if (length(ylim)) list(ylim = ylim), if (length(xlab))
list(xlab = xlab),
if (length(scales)) list(scales = scales), if
(length(minor.ticks)) list(minor.ticks = minor.ticks),
if (!missing(groups)) list(groups = groups), if
(!missing(subset)) list(subset = subset),
list(...)))
}
<environment: namespace:Hmisc>
If you see the same thing, in particular for the
do.call("xyplot", c(list(x = formula, data = data,
part, then I don't have a solution for your problem.
> sessionInfo()
R version 2.7.0 Under development (unstable) (2007-11-21 r43517)
x86_64-unknown-linux-gnu
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] Hmisc_3.4-3 lattice_0.17-2
loaded via a namespace (and not attached):
[1] cluster_1.11.9 grid_2.7.0
More information about the R-help
mailing list