Re: [R] A plot of factor data?

2008-05-02 Thread Sang Chul Choi
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 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

[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] 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 choi at 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 you enlarge

[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 abline

[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)

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

2008-05-02 Thread Sang Chul Choi
, Dieter Menne wrote: Sang Chul Choi Choi at 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. Using mosaicplot function of graphics package, I can draw a line using abline. But, with mosaic

[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 0s and 15 of 1s, and column b has 5 and 20. x - data .frame