plot - r plotting on wrong scale -


i have dataset looks this:

         time ctrl_lsm1_stat     id     ratio abp140.1    1             no abp140 -0.262682 ari1.1      1             no   ari1 -0.163952 bph1.1      1             no   bph1 -0.517519 bur6.1      1            yes   bur6  0.645573 cdc20.1     1             no  cdc20 -0.264072 clb2.1      1             no   clb2 0.0690172 

but when try plot using code:

plot(d2$time, d2$ratio, col=ifelse(d2$ctrl_lsm1_stat=="yes",1,2),cex=2.0) 

i output:

enter image description here

can tell me why r messing ratio values , why increasing? largest ratio value in dataset 3.63236 , smallest -0.0153141, scale should between values.

so figured out. simple adding stringsasfactors = false read.table


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -