[R] plot xy data
dwinsemius at comcast.net
Sat Nov 26 17:15:37 CET 2011
On Nov 25, 2011, at 11:27 PM, sutada Mungpakdee wrote:
> 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.
You question doesn't make clear what you expected and what you are
seeing. I also do not see why you added library(IRanges) because I see
nothing from that package in the code. We cannot run it because the
data is not provided and you made not effort to construct a
data.frame that would match the attributes of the real "data". It
would be better of course to call your data something other than "dog".
> data <-read.table(file="~/q20snpref/
> #depth now has the mean (overall)coverage
> #set the bin-size
If you want to swap the roles of "data.10kb" (AKA "coverage") and
"sca_position" then just reverse the x and y assignments.
> Best regards,
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD
West Hartford, CT
More information about the R-help