Re: [R] plot: want only dots

2013-10-16 Thread Hermann Norpois
Thanks. Yes it was due to the factor-thing. If I change Genotype as mentioned everything works fine. Thanks Hermann 2013/10/15 Sarah Goslee > Hi, > > Genotype is a factor, and R is giving you the default type for that data > type. > > I changed your data frame to mydata because df() is a functi

Re: [R] plot: want only dots

2013-10-15 Thread David Carlson
..@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Sarah Goslee Sent: Tuesday, October 15, 2013 11:48 AM To: Hermann Norpois Cc: r-help Subject: Re: [R] plot: want only dots Hi, Genotype is a factor, and R is giving you the default type for that data type. I changed your data fram

Re: [R] plot: want only dots

2013-10-15 Thread Sarah Goslee
Hi, Genotype is a factor, and R is giving you the default type for that data type. I changed your data frame to mydata because df() is a function, but see this: > str(mydata) 'data.frame':20 obs. of 2 variables: $ Genotype: Factor w/ 3 levels "0","1","2": 1 1 1 1 1 1 1 1 2 2 ... $ z

[R] plot: want only dots

2013-10-15 Thread Hermann Norpois
Hello, I would like to plot some values referring to the genotype (which is 0,1 and 2). My data is organised like this: head (df) Genotype z 10 0.07029379 20 2.15739115 30 0.51395897 40 0.48733029 50 0.15584074 60 0.27755294 I tried: >