Re: [R] A horizontal or vertical line draw on mosaic plot?

2008-05-02 Thread Sang Chul Choi
eatly appreciate any help. Thank you, Sang Chul On May 2, 2008, at 1:41 PM, Dieter Menne wrote: Sang Chul Choi biology.rutgers.edu> writes: I want to have a horizontal line on a mosaic plot with "vcd" package. This would give me an idea where is 0.5 proportion in a cell. Usin

[R] cor.test like cor?

2008-05-02 Thread Sang Chul Choi
Hi, Is there a simple way to do correlation coefficient tests with "cor.test" like I would do with "cor" function? I have a data frame where each column is a list. y <- data.frame(a=sample(30, 20), b=sample(30, 20), c=sample(30,20)) cor(y) ==

[R] A horizontal or vertical line draw on mosaic plot?

2008-05-02 Thread Sang Chul Choi
Hi, I want to have a horizontal line on a mosaic plot with "vcd" package. This would give me an idea where is 0.5 proportion in a cell. Using "mosaicplot" function of "graphics" package, I can draw a line using "abline." But, with "mosaic" function of "vcd" package, I have tried to use "a

Re: [R] mosaic plot of "vcd" package does not stretch with 2-dimension?

2008-05-02 Thread Sang Chul Choi
Thank you very much! Sang Chul On May 2, 2008, at 12:06 PM, Dieter Menne wrote: Sang Chul Choi biology.rutgers.edu> writes: I like mosaic function of "vcd" package. I have played around it. I have found out that mosaic plot data table is 2-dimension does not stretch when

[R] mosaic plot of "vcd" package does not stretch with 2-dimension?

2008-05-02 Thread Sang Chul Choi
Hi, I like mosaic function of "vcd" package. I have played around it. I have found out that mosaic plot data table is 2-dimension does not stretch when you enlarge a mosaic plot. It is okay when data table is 3 or more dimension. The first one is of 3-dimension table case, and the second

Re: [R] A plot of factor data?

2008-05-02 Thread Sang Chul Choi
Gunter wrote: ?mosaicplot -- Bert Gunter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Sang Chul Choi Sent: Thursday, May 01, 2008 4:09 PM To: r-help@r-project.org Subject: [R] A plot of factor data? Hi, I am wondering if there is a way to plot propo

[R] A plot of factor data?

2008-05-01 Thread Sang Chul Choi
Hi, I am wondering if there is a way to plot proportions of factors. I tried to find plot functions for those but in vain. For example, I have a data like this where column "a" has 10 of "0"s and 15 of "1"s, and column "b" has 5 and 20. > x <- data .frame ("a"=factor(c(rep(0,10),rep(1,