That's what I want. Many thanks for your help.
Legen
jholtman wrote:
>
> Try this:
>
>> x <- read.table(textConnection("idcode1code2 p
> + 148 0.1
> + 157 0.9
> + 218
Your script works very well. Thank you very much.
Legen
Henrique Dallazuanna wrote:
>
> Try this also:
>
> xtabs(rep(p, 2) ~ rep(id, 2) + sprintf("var%d", c(code1, code2)), data =
> x)
>
> On Wed, Nov 11, 2009 at 2:10 AM, legen wrote:
>>
>> Than
Thank you for your kind help. Your script works very well. Would you please
show me how to change NaN to zero and column variables 1, 2, ..., 8 to var1,
var2, ..., var8? Thanks again.
Legen
jholtman wrote:
>
> Is this what you want:
>
>> x <- read.table(textConnection(&qu
0.9 0
For the third subject, there are two values being equal to 5 in code1 and
code2, but different values in p: 0.7 and 0.9, so I assigned their average
0.8 in var5.
Does anybody can help me to handle this? Many thanks for your consideration
and time.
Legen
--
View this message in
tions? Your help
would be greatly appreciated.
Legen
--
View this message in context:
http://www.nabble.com/Read-in-multiple-datasets-tp25630688p25630688.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing
Hello all,
I have a problem and need your help.
I am going to draw two plots in one row and two columns by using
“par(mfrow=c(1,2))”, but I want to first draw the right plot and then draw
the left plot. Does anybody can show me how to do it please? Thanks in
advance.
Legen
--
View this
, we aften draw plots of
chromosomes with lots of genes (x1, x2, ...) and their positons on the
chromosome (numerical values).
Legen
Dieter Menne wrote:
>
>
>
> legen wrote:
>>
>>
>> I have a question about changing the height or scale of the y axis. When
&
Hi, Jim,
Thank you for your reply. I just want to increase the height of y axis in
the second plot in order to show all the indices (x1, x2, ...). Can you help
me? Thank you again.
Legen
Jim Lemon-2 wrote:
>
> legen wrote:
>> Hallo, All,
>>
>> I have a question abou
the y axis in
the second plot? I guess maybe changing the height or scale of y axis is a
way to solve my problem, but I failed to do it after several trails. Anybody
can help me? Thank you in advance.
Legen
The first R code:
x<-c("x1","x2","x3","x4",
I got it. Thank you very mcuh.
Legen
jholtman wrote:
>
> You need to specify the xlim:
>
> y<-c(0.037790309,0.020307312,0.021109653,0.050216689,
> 0.026979484,0.027619193,0.024070163,0.021996969,
> 0.007831769,0.020065109,0.005903177,0.008182403)
> d<-
(y,seq(1:12)))
colnames(d)<-c("y","x")
attach(d)
plot(y,x,xlab="",ylab="",axes=F)
abline(v=c(0.0),lty=2)
axis(1)
axis(3)
Any help with be greatly appreciated!
Legen
--
View this message in context:
http://www.nabble.com/Plot-with-a-vertical-line-at-
11 matches
Mail list logo