[R] plot xy data

2011-11-25 Thread sutada Mungpakdee
Hi, Has anyone know about how to get the correct plot? I have use this R script (as below), so I expect the plot is based on x axis, but the result was opposite. Any suggestion will be great. library(IRanges) data <-read.table(file="~/q20snpref/illusmp454merbed",sep="\t",header=F) colnames(data

[R] coverage plot

2011-11-20 Thread sutada Mungpakdee
Hi, I'm very beginner for R but I think it is a time to start as it is very useful. I have a coverage read file (illusmp454merCbed) for whole genome ~ 450 Mbp. This is head of this file. Scaffoldsca_positioncoverage Scaffold1 1 0 Scaffold1 2 0 Scaffold1