Re: [Rd] panel.stripplot (PR#2694)

2003-03-27 Thread deepayan
Right. Will be fixed in R 1.7.0. On Thursday 27 March 2003 08:48 am, [EMAIL PROTECTED] wrote: > Full_Name: Steven Novick > Version: 1.6.2 > OS: Windows NT > Submission from: (NULL) (198.85.98.225) > > > The current code snippet in panel.stripplot is: > if (is.null(groups)) > panel.xyplot(

Re: [Rd] [R] lattice: ltext() does not accept NULL (PR#5290)

2003-11-24 Thread deepayan
On Monday 24 November 2003 05:42, [EMAIL PROTECTED] wrote: > text( pos=NULL ) is working. > > ltext( pos=NULL ) gives an error message: > "argument is of length zero" The following should fix this : ltext <- function(x, y = NULL, labels = seq(along = x), col = add.text$col

Re: (PR#6005) Re: [Rd] [R] lattice: levelplot: error: min not meaningful

2003-12-22 Thread deepayan
ic(y) panel.levelplot(x, y, ...) }) Deepayan On Monday 22 December 2003 10:52, Prof Brian Ripley wrote: > From the help page: > > formula: a formula of the form 'z ~ x * y | g1 * g2 * ...', where 'z' > is a numeric response, and 'x,

Re: [Rd] trellis.device in .First (PR#6812)

2004-04-22 Thread deepayan
, impvars) : object(s) 'windows' are not exported by 'namespace;graphics' Is Rich's usage valid under 1.9.0 ? I presume replacing trellis.device() by windows() will give the same error. Or are all lattice functions expected to work after a requi

Re: [Rd] bug in xyplot xlab, etc (PR#7076)

2004-07-11 Thread deepayan
t;abcd")) ## error message > > Error in if (is.list(label) && names(label)[1] == "") label[[1]] else > default.label : missing value where TRUE/FALSE needed Evidently, this is due to my (unreasonable) expectation that names(list("abcd")) wou

[Rd] Segfault with options() (PR#7078)

2004-07-11 Thread deepayan
This is completely undocumented use of options, but it does cause a segfault with r-patched and r-devel on Linux: options(list('digits', 'scipen')) Strangely enough, options(list('digits')) and options(list(digits = 10, scipen = 2)) work a

Re: [Rd] Segfault with options() (PR#7078)

2004-07-12 Thread deepayan
On Monday 12 July 2004 11:37, Martin Maechler wrote: > Thank you, Deepayan: > >>>>> "Deepayan" == Deepayan Sarkar <[EMAIL PROTECTED]> > >>>>> on Mon, 12 Jul 2004 05:46:08 +0200 (CEST) writes: > > Deepayan> This is completely

[Rd] minor typo in by.Rd (PR#7211)

2004-09-05 Thread deepayan
row into data frames subsetted by the values of one or more factors, and function \code{FUN} is applied to each subset in term. the last word was probably meant to be 'turn'. -Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [R] Lattice: ltext() takes only the x-part of the adj argument (PR#2380)

2002-12-18 Thread deepayan
Thanks. Fixed in the development version. On Wednesday 18 December 2002 07:57 am, [EMAIL PROTECTED] wrote: > In the following example, changing `adjx' from 0 to 0.5 to 1 > changes the position of the letters. Changing `adjy' has no > influence on the position of the letters. > > adjx = 0 > adjy =

Re: [Rd] Lattice: panel.superpose function does not pass subscripts and groups arguments (PR#2377)

2002-12-18 Thread deepayan
I've added this in the development version. -Deepayan On Monday 16 December 2002 07:32 am, [EMAIL PROTECTED] wrote: > Full_Name: Volker Franz > Version: 1.5.1 > OS: Debian-Linux > Submission from: (NULL) (134.176.77.64) > > > Hi, > > working with the panel.supe

Re: [Rd] question on latticeParseFormula (PR#2602)

2003-03-03 Thread deepayan
The fact that an attempt at adding an unordered and an ordered factor gives an error 1. is not a bug (at least I can't imagine why it would be so) 2. has nothing to do with latticeParseFormula Also, I very much doubt that getting a bunch of NA's and a warning (which you seem to have omitted f

Re: [Rd] barchart fails when grouping variable has more than 7 levels (PR#7293)

2004-10-18 Thread deepayan
cked bars. Right, I had the color replicated to be as long as necessary, but missed the other things. Should be fixed in the next release. Thanks, Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] (inappropriate) manipulation of expression objects causes segfault (PR#7326)

2004-10-29 Thread deepayan
n(beta) > foo[2] <- NA > foo ## or str(foo) Segmentation fault (Same behaviour in R 1.9.1) 'foo[[2]] <- NA' works fine, though. Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] problem with library() (or possibly grid) in r-devel

2003-03-12 Thread Deepayan Sarkar
In recent r-devels, I have > library(help = grid) Error in formatDL(entry, style = "list") : incorrect value for x This doesn't happen for the other packages I have tried, so maybe this is a problem with grid. Deepayan _

Re: [Rd] histogram {lattice}: width of outmost bars

2003-04-04 Thread Deepayan Sarkar
R 1.6.2 ? (The output of the above code doesn't look wrong to me with 1.6.2). Deepayan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] How does "subset" replace arguments? (PR#4193)

2003-09-16 Thread Deepayan Sarkar
data frame test, should be the single string "Kreis2, Kreis5, Metall, Kreis1, Kreis8" So, the comparison toString(field)=="Metall" actually does "Kreis2, Kreis5, Metall, Kreis1, Kreis8" == "Metall" which being false, returns FALSE, and so you finall

Re: [Rd] possible bug in diag()

2003-09-18 Thread Deepayan Sarkar
Why is this a bug ? help(diag) says If 'x' is a vector (or 1D array) of length two or more, then 'diag(x)' returns a diagonal matrix whose diagonal is 'x'. If 'x' is a vector of length one then 'diag(x)' returns an identity matrix of order the nearest integer to 'x'. The

Re: [Rd] grep in version 1.8 (PR#4231)

2003-09-21 Thread Deepayan Sarkar
n't delete obsolete files. Anonymous cvs wouldn't have this > problem. rsync should delete files if you give the --delete flag (and cvs wouldn't unless you give the -d flag). Deepayan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] grep in version 1.8 (PR#4231)

2003-09-22 Thread Deepayan Sarkar
On Monday 22 September 2003 05:07, you wrote: > > (and cvs wouldn't > >unless you give the -d flag). > > -d means something different, it's about which directory to work in. I > notice that I've set a default arg of -Pd, but it's not documented in > my version of cvs as far as I can tell; maybe tha

Re: [Rd] ltext( pos=NULL )

2004-01-28 Thread Deepayan Sarkar
released version, but feel free to let me know if you think otherwise. Deepayan > > The help page of ``ltext'' references to the help page of ``text'' > where the default value of pos is set to NULL. > > To solve the problem ``ltext'' could be chan

[Rd] minor (possibly documentation) bug in seq

2004-02-04 Thread Deepayan Sarkar
r 0: > seq(0) [1] 1 0 > seq(length = 0) numeric(0) I'm not sure what the intended behaviour of seq(0) is, but either seq() or the help page should be fixed. Also, the exception (naturally) holds only for _numeric_ arguments of length 1. Deepayan _

Re: [Rd] Spelling (PR#6570)

2004-02-10 Thread Deepayan Sarkar
bly not a valid comparison, since test->testing whereas set->setting. Oxford (OED) lists the word 'settable' but not 'setable'. subsettable (or subsetable) is obviously an artificial word (we use subset as a verb), but presumably invented derivatives of 'subset&#

Re: [Rd] lattice/grid: problem with viewports for strips with zero height

2004-03-09 Thread Deepayan Sarkar
list(sep = sep))) ans <- factor(final.chars, levels = final.levels) if (drop) ans <- ans[, drop = TRUE] ans } data(barley) dotplot(variety ~ yield | combine.factors(year, site, sep = "",

Re: [Rd] trellis.device in .First (PR#6812)

2004-04-23 Thread Deepayan Sarkar
yes, device is an argument to trellis.device that defaults to getOption("device")) > since the importFrom(..) approach leeds to a somewhat > tedious maintenance effort to keep up the list of available devices > for the different platforms (For MacOS X one has to include quartz()

Re: [Rd] Reproducible Rterm crash. (PR#7072)

2004-07-09 Thread Deepayan Sarkar
ior, so I'll fix it. But since this would be an API change, I don't think I should do it in a stable update. I can send you a patched version privately if you wish. Deepayan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Reproducible Rterm crash. (PR#7072)

2004-07-11 Thread Deepayan Sarkar
On Friday 09 July 2004 22:14, Richard M. Heiberger wrote: > Deepayan Sarkar: > > This will give you non-empty panels, but not different angles of > > rotation. This is because panel.wireframe doesn't handle screen, > > the top-level function (wireframe) does. There

Re: [Rd] bug in xyplot xlab, etc (PR#7076)

2004-07-11 Thread Deepayan Sarkar
r sub. >sub See entry for main for finer control options. > > Deepayan might want to point to "main" from all of these Well, that was my idea of a bad joke. :-( Deepayan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] rsync -> cvs down?

2004-07-19 Thread Deepayan Sarkar
t; I.e. you need more than double the diskspace > but you can be offline to "diff" files ! And similarly, when committing, only the diff's are sent over the network. Deepayan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Bug: wrong R-squared in lm formula w/o intercept (PR#7127)

2004-07-21 Thread Deepayan Sarkar
intercept only is not a submodel. In other words, the R^2 for the two models you have fit are calculated with different baseline models, and hence are not comparable. Deepayan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

[Rd] doc buglet: misleading description in ?source

2004-08-11 Thread Deepayan Sarkar
be quoted). Input is read from that file until the end of the file is reached. <...> Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] The Depends: field of a package is now used by library()

2004-08-12 Thread Deepayan Sarkar
long as grid is installed, but there should be some indication in the DESCRIPTION that that grid is a requirement. None of the other fields seem appropriate. Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] The Depends: field of a package is now used by library()

2004-08-12 Thread Deepayan Sarkar
On Thursday 12 August 2004 10:19, Prof Brian Ripley wrote: > On Thu, 12 Aug 2004, Deepayan Sarkar wrote: > > On Thursday 12 August 2004 07:34, Prof Brian Ripley wrote: > > > In R-devel, the Depends: field in the DESCRIPTION file is now > > > used by library() to load th

Re: [Rd] The Depends: field of a package is now used by library()

2004-08-12 Thread Deepayan Sarkar
y weird, but I can live with it. Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] promptClass("numeric")

2004-08-16 Thread Deepayan Sarkar
section{Methods}{ > \describe{ > \item{coerce}{\code{signature(from = "ANY", to = "numeric")}: ... > } } > } > > Were is my method "foo"? Why do you expect it to be there? If you want documentation for method definitions of foo, use promptMet

Re: [Rd] promptClass("numeric")

2004-08-16 Thread Deepayan Sarkar
hich is so simple (it just prints > "foo") I would like to use promptClass. Yes, I should have RTFM before replying. On closer inspection, this seems to be a feature (?) of the "numeric" class (and perhaps other primitive classes). It works as you expect for a freshly defined formal class. Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Installing package lattice

2004-08-23 Thread Deepayan Sarkar
usr/home/jgentry/R-devel/library/lattice' Yes, the released lattice version is no longer compatible with r-devel after a split of the graphics package, and install.packages doesn't know to look in http://cran.us.r-project.org/src/contrib/2.0.0/Recommended/. Doing a ./tools/rsync-reco

[Rd] reorder [stats] and reorder.factor [lattice]

2004-08-27 Thread Deepayan Sarkar
d make a reorder method for "factor" (which sounds like a good option to me), or rename it to something like reorderFactor. Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] reorder [stats] and reorder.factor [lattice]

2004-08-27 Thread Deepayan Sarkar
On Friday 27 August 2004 11:17, Prof Brian Ripley wrote: > On Fri, 27 Aug 2004, Deepayan Sarkar wrote: > > It was recently pointed out on the lists that the S-PLUS Trellis suite > > has a function called reorder.factor that's useful in getting useful > > ordering of fac

[Rd] sunspot data in R 2.0.0

2004-09-01 Thread Deepayan Sarkar
data from lattice? I don't think anyone is going to miss it. Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] sunspot data in R 2.0.0

2004-09-01 Thread Deepayan Sarkar
On Wednesday 01 September 2004 10:33, Prof Brian Ripley wrote: > On Wed, 1 Sep 2004, Deepayan Sarkar wrote: > > I noticed this in the NEWS: > > > > o Datasets 'sunspot.month' and 'sunspot.year' are available > > separately but not

[Rd] .First.lib and namespaces

2004-09-02 Thread Deepayan Sarkar
s not executed anyway. Is this intended (and dependable) behaviour? (If so, this should probably be mentioned in ?library, which currently says '.First.lib' is called when a package is loaded; '.Last.lib' is called when a package is detached. without any mention

Re: [Rd] reorder [stats] and reorder.factor [lattice]

2004-09-13 Thread Deepayan Sarkar
Before it's too late for R 2.0.0, do we have a final decision yet on having a reorder method for "factor" in stats? Deepayan On Friday 03 September 2004 11:36, Warnes, Gregory R wrote: > I also have a reorder.factor defined in the gregmisc package. It has > a slighly dif

Re: [Rd] [R] proposal: lattice/levelplot: panel.catlevelplot

2003-01-21 Thread Deepayan Sarkar
On Tuesday 21 January 2003 08:49 am, Wolfram Fischer - Z/I/M wrote: > I suggest to add a panel function to levelplot (or perhaps > to an other 3d lattice function) which is able to translate > the z values into the size of the rectangles. Cool. > It could be used to display categorical data. > >

Re: [Rd] [R] proposal: lattice/levelplot: panel.catlevelplot

2003-01-23 Thread Deepayan Sarkar
and xyplot, for example, already does this since lattice 0.6. I'll just have to make some minor adjustments to get this behaviour working in the 3D functions. Deepayan __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] [Package car/data.ellipse]: confidence intervals off by factor sqrt(2)??? (PR#2584)

2003-02-26 Thread Deepayan Sarkar
an you expect an ellipse that will have the same X-range, that is a strict subset of this region, to still have joint probability 0.68 ? Hope that helps, Deepayan __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] bug in bwplot (PR#2595)

2003-03-01 Thread Deepayan Sarkar
On Saturday 01 March 2003 05:28 pm, [EMAIL PROTECTED] wrote: > > tmp <- data.frame(y=rnorm(12), g=factor(rep(1:2,6))) > > bwplot(g ~ y, data=tmp) > > Error in segments(x1 = structure(c(-1.68373790592731, 0.159038997376781, : > Argument "x0" is missing, with no default This is not reproducib

Re: [Rd] question on latticeParseFormula (PR#2602)

2003-03-03 Thread Deepayan Sarkar
t="y ~ a + b") > rather than continue pushing latticeParseFormula. Maybe you want something like as.character(y ~ a + b)[-1] Deepayan __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] "R CMD check" with R 2.0.0

2004-10-07 Thread Deepayan Sarkar
not knowing whether to start a new page the first time: > x11() > plot(1) > grid.newpage() > grid.points(x = runif(10), y = runif(10), vp = viewport()) Paul, any ideas? Deepayan __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] user error described in the FAQ (was [BUG?] xyplot in loop does not work)

2004-11-22 Thread Deepayan Sarkar
x27; rather than written documentation which we have spent a lot of effort producing? (In any case, Prof Ripley's 'flaming' in this case was pretty mild, in fact practically non-existent, compared to his usual standards :-)) Deepayan > > Thank you for your valuable co

Re: [Rd] Is this a bug in the parser? (PR#7395)

2004-11-28 Thread Deepayan Sarkar
e about repeatedly; computing on the language by going through > the textual representation as in parse(...deparse(...)) is almost > always wrong. In this particular case, I think the code is equivalent > to > > model <- substitute(~ m, l

[Rd] segfault (with non-standard use of x11/par(ask=T))

2005-01-10 Thread Deepayan Sarkar
ux-gnu system i686, linux-gnu status Under development (unstable) major2 minor1.0 year 2005 month01 day 10 language R This doesn't happen in R 2.0.1, but has been there in r-devel for a while now. Deepayan __ R-devel@stat.

[Rd] unexpected behaviour of expression(sum())

2005-03-10 Thread Deepayan Sarkar
igoplus instead of \sum in r-devel, and the other way round in 2.0.1. demo(plotmath) shows \sum in both. Can anyone confirm? Is this intended behaviour (though I can't see how)? -Deepayan __ R-devel@stat.math.ethz.ch mailing list https://

Re: [Rd] unexpected behaviour of expression(sum())

2005-03-11 Thread Deepayan Sarkar
On Friday 11 March 2005 01:19, Prof Brian Ripley wrote: > On Thu, 10 Mar 2005, Marc Schwartz wrote: > > On Thu, 2005-03-10 at 19:57 -0600, Deepayan Sarkar wrote: > >> I'm seeing inconsistent symbols from the same expression with the > >> following code: > >>

Re: [Rd] unexpected behaviour of expression(sum())

2005-03-12 Thread Deepayan Sarkar
ver as well as local fonts? I don't think so. My XF86Config-4 file has the line FontPath"unix/:7100" # local font server but I don't see any font server package actually installed, and I get deepayan $ xfsinfo -server localhost:7100 xfsinfo: un

[Rd] minor iconvlist() bug in r-devel

2005-03-16 Thread Deepayan Sarkar
"names""necessarily" "not" "of" [31] "parameters." "set" "sets" "several" "that" [36] "the" "the" "these""used" "with" A possible fix seems to be to replace ext <- readLines(icfile) by ext <- grep("/$", readLines(icfile), value = TRUE) but I don't know if that's guaranteed to work. -Deepayan __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] minor iconvlist() bug in r-devel

2005-03-16 Thread Deepayan Sarkar
uish the two. Can anything with a lowercase letter be safely rejected? That would bring the spurious names down to 2 (FROM and TO). Deepayan > Brian > > On Wed, 16 Mar 2005, Deepayan Sarkar wrote: > > This is on r-devel from 2005-03-15. iconvlist() uses (at least some > > of the

Re: [Rd] minor iconvlist() bug in r-devel

2005-03-16 Thread Deepayan Sarkar
On Wednesday 16 March 2005 10:57, Prof Brian Ripley wrote: > On Wed, 16 Mar 2005, Deepayan Sarkar wrote: > > On Wednesday 16 March 2005 10:11, Prof Brian Ripley wrote: > >> That file is created by > >> > >> $(top_builddir)/library/$(pkg)/iconvlist: most >

[Rd] minor doc bug: options.Rd should be updated

2005-04-26 Thread Deepayan Sarkar
.} -Deepayan __ R-devel@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-devel