Displaying 20 results from an estimated 20000 matches similar to: "plot functions, formula interfaces and NAs"
2002 Jan 30
1
mosaicplot(formula, data)--- bugged?
I have been tinkering with mosaicplot() and friends as a way
of learning R. As part of this, I've written a pair.table()
method for mosaic matrices, and would like to extend mosaicplot
to work with loglin and logln (MASS) objects. I'm using
R 1.4.0 on Win 98.
I've been trying to figure out the formula interface, and think
there's a bug, but not sure how to find it, yet alone fix
2003 Jun 13
2
formula (joint, conditional independence, etc.) - mosaicplots
Hi,
Can someone set me straight as to how to write formulas in R to indicate:
complete independence [A][B][C]
joint independence [AB][C]
conditional independence [AC][BC]
nway interaction [AB][AC][BC]
?
For example, if I have 4 factors:
hair colour, eye colour, age, sex
does
> mosaicplot( frequency ~ hair + eye + age + sex)
mean that the model fitted is of complete independence of
2008 Apr 26
0
Misuse of get(getOption("device"))() in packages
Quite a few packages have used this construct to launch a device, but it
has several flaws. It's not clear in most cases that a package really
needs to launch a new device (R will do so if needed), but 2.7.0 provides
a function dev.new() to do so. (If you really need this in a GPL-ed
package that must run in R < 2.7.0, consider copying dev.new.)
You cannot assume any arguments for
2004 Sep 27
2
Getting code for functions
Hello
Pardon for the elementary question, I did try searching the archives
with various terms, but to no avail. I am using R1.9.1 on a windows
machine
One of the great advantages of R (to me, anyway) is being able to see
the code for a function , e.g. by typing sd one sees the code for
getting a standard deviation.
However, for many functions this only provides info. including
UseMethod, eg.
2007 Apr 19
0
(PR#9613) [Wishlist] to uniform help(x) and library(help=x)
What library(help=foo) produces is not HTML and has no hyperlinks, so why
do you want it displayed in a browser? If you do want text displayed in a
browser, you can set options("pager") to point to your browser (or a
wrapper).
It is no different from other library() help modes, like library() with no
argument, nor from help(package="foo").
Indeed, the help for help says
2000 Aug 02
1
Re: [R] problem clipping R postscript plots within latex (PR#625)
On Wed, 2 Aug 2000 p.dalgaard@biostat.ku.dk wrote:
> Martin Maechler <maechler@stat.math.ethz.ch> writes:
>
> > (from R-help)
> > PD> Stephen Eglen <stephen@cogsci.ed.ac.uk> writes:
> >
> > > > > generated by R into a latex document. Specifically, the latex package
> > > > > graphicsx allow you to specify the
2007 Jul 18
1
(PR#9796) write.dcf/read.dcf cycle converts missing entry
BIll,
Thanks.
I am seeing some problems here, for example when all the fields are
missing, or all the fields in a row are missing. I've fixes for those,
and will commit to R-devel shortly.
On Tue, 17 Jul 2007, bill at insightful.com wrote:
> Full_Name: Bill Dunlap
> Version: 2.5.0
> OS: Red Hat Enterprise Linux WS release 3 (Taroon Update 6)
> Submission from: (NULL)
2005 Aug 23
0
(PR#8087) NAs by integer overflow in Spearman's test p-value
There is an even simpler way: someone wrote n*(n^2-1) as n*(n-1)*(n+1)
and caused the problem.
Your superfluous semicolons do definitely make your code harder to read.
On Tue, 23 Aug 2005 jtk at cmp.uea.ac.uk wrote:
> Full_Name: Jan T. Kim
> Version: 2.1.0 (and better)
> OS: Linux
> Submission from: (NULL) (139.222.3.229)
>
>
> The p value in Spearman's test is NA if
2006 Jul 19
1
plain shading (not residuals) in mosaic plot
Hello. I've been using R for a couple of months and enjoying it a lot.
This is my first post to R-help.
I'm using the vcd package to make mosaic plots with labels on the tiles
indicating the number of items in each cell.
For example, I've made this plot:
> allmorph<-structure(c(10, 26, 17, 100, 70, 97, 253, 430, 185, 177,
> 25, 1), .Dim = as.integer(c(6, 2)), .Dimnames
2009 Mar 05
0
(PR#13553) wishlist boxplot
No objections from Martin or elsewhere, so I have now committed this.
Thanks, Uwe.
On Tue, 24 Feb 2009, Uwe Ligges wrote:
> [CCing Martin and Brian who had both done most svn commits of boxplot.R so
> far]
>
>
> A very minor wishlist item that I should have already reported years ago:
>
> All the time when I need presentation/publication quality boxplots, I add
>
2000 Mar 07
0
Re: autoload error in profile {was anova-bug in R-version 1.0.0?} (PR#473)
On Tue, 7 Mar 2000, Martin Maechler wrote:
> >>>>> "BDR" == Prof Brian D Ripley <ripley@stats.ox.ac.uk> writes:
>
> BDR> On Tue, 7 Mar 2000, Trenkler, Dietrich wrote:
> >> I think I've discovered what went wrong.
> >>
> >> My workspace included a function wilcox.test formerly copied from
> >>
2003 Jun 12
0
Re: (PR#3241) write.table() fails for POSIXlt class and NAs in
Uwe,
You said you used
testdata <-
data.frame(date = strptime(c("31121991", "31121991"), "%d%m%Y"),
nothing = c(NA, NA))
but that's not the same object, and that one does work for me.
> dput(testdata)
structure(list(date = structure(c(694137600, 694137600), class = c("POSIXt",
"POSIXct")), nothing = c(NA, NA)),
2010 Dec 15
1
problems with mosaic plot
I'm pretty sure that I did everything right, but my R is just not drawing the
mosaicplot that I want, and there is also no error messege, looks like this
right now:
> mosaicplot(arthritis)
> mosaicplot(~ sex + treatment + improved, data = arthritis, color = TRUE)
>
--
View this message in context: http://r.789695.n4.nabble.com/problems-with-mosaic-plot-tp3090128p3090128.html
Sent
2005 Oct 05
0
Ad: Re: Ad: Re: R crashes for large formulas in lm() (PR#8181)
On Wed, 5 Oct 2005 Hallgeir.Grinde at elkem.no wrote:
> Yes.
> so (x1*x2*x3*x4*x5*x6*x7*x8)^2 = (x1+x2+x3+x4+x5+x6+x7+x8)^8 ?
Yes in the sense that the simplified formula given by terms() is the same.
> and there is a difference in
> (x1*x2*x3*x4*x5*x6*x7*x8)^2
> and
> (x1*x2*x3*x4*x5*x6*x7*x8)
> althoug the resulting formulas are the same, or?
The first is reduced to the
2005 Mar 10
2
Question regarding mosaicplot
I tried this :
> mosaicplot(stoc ~ q9r + segca,data=tmp2,color=T) : works fine.
And now, this :
> mosaicplot(stoc ~ q9r + segca, data=tmp2, color=T, main="Big title")
Error in model.frame(formula, rownames, variables, varnames, extras, extranames, :
invalid variable type
I'm probably stupid and missed something simple in the manual (and wouldn't like to be
2002 Sep 13
1
[R] proposal: mosaicplot with sub and las
Two proposals for mosaicplot():
- The argument "sub" should not be ignored.
Example: mosaicplot( HairEyeColor, sub = 'test of sub' )
- To be able to discern also longer axis labels
the argument "las" or par(las=2) should not be ignored.
Example: mosaicplot( HairEyeColor, las=2 )
Thanks
Wolfram
2001 Nov 30
1
mosaic.by(): vectorizing args passed by apply()?
I've just started learning R, so I'm still on the steep part of the
learning curve, but my enthusiasm was heightened by learning that
there's a very nice implementation of mosaicplot().
As a learning project, I've already done a basic implementation
of a pairs.table() function which does a mosaic scatterplot matrix,
and now I'm trying to do conditional mosaic plots (discrete
2005 Mar 29
1
Mosaicplot with different colors
This dataset below is one sample answer the questioner from our customer.
> testbank <- read.table("testbank.txt", header=T)
> testbank
age married income gender ownhouse class
1 20-30 no high female yes 1st
2 30-40 no high female yes 1st
3 40-50 no low female yes 1st
4 50-60 no high female yes 1st
5 60-70
2006 Jan 29
3
Mosaicplot coloring (PR#8537)
Full_Name: Greg Kochanski
Version: 2.2.1
OS: Debian Linux (testing)
Submission from: (NULL) (212.159.16.190)
mosaicplot(x, shade=TRUE) is intended to color the blocks
blue if they are more common than one might expect
and red if they are rarer than one might expect.
Unfortunately, if a block is much rarer than expected,
it is so narrow that one cannot see the red. Thus,
a casual inspection
2005 Feb 18
1
Contingency tables profiles
Thank for your help
I obtained profiles and I found mosaicplot as an interesting alternative.
I don't like my solution about legend in profiles graphics: I inserted empty
extra columns in order to avoid tue superimposed of legend.
#Data
N <- matrix(0,3,6)
N[1,] <- c(7,7,5,0,4,4)
N[2,] <- c(0,0,0,5,5,5)
N[3,] <- c(4,4,0,0,3,0)
rownames(N) <-