Re: [R] Plot numeric and categorical variable

2011-12-06 Thread Sarah Goslee
Not to mention that I answered this exact question only yesterday. 2011/12/6 Uwe Ligges : > On 05.12.2011 23:22, Juliet Ndukum wrote: >> >> My data consists of numeric (yy) and categorical (xx) variables, as shown >> below. >>> >>> xx = c(rep("C", 5), rep("D",5))>  xx [1] "C" "C" "C" "C" "C" "D" "

Re: [R] Plot numeric and categorical variable

2011-12-06 Thread Uwe Ligges
On 05.12.2011 23:22, Juliet Ndukum wrote: My data consists of numeric (yy) and categorical (xx) variables, as shown below. xx = c(rep("C", 5), rep("D",5))> xx [1] "C" "C" "C" "C" "C" "D" "D" "D" "D" "D"> yy = rnorm(10, 0, 4)> yy [1] 2.7219346 -3.7142481 6.8716534 -0.9352463 0.4901249 3.8

[R] Plot numeric and categorical variable

2011-12-05 Thread Juliet Ndukum
My data consists of numeric (yy) and categorical (xx) variables, as shown below.  > xx = c(rep("C", 5), rep("D",5))> xx [1] "C" "C" "C" "C" "C" "D" "D" "D" "D" > "D"> yy = rnorm(10, 0, 4)> yy [1]  2.7219346 -3.7142481  6.8716534 -0.9352463 >  0.4901249  3.8113247 [7] -2.6602041  1.7714471  4.729