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:

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
Post a Comment