[R] : put grids in a plot at specific x points
Laura Rodriguez Murillo
laura.lmurillo at gmail.com
Mon Mar 16 22:00:50 CET 2009
Thank you! that worked nicelly!
2009/3/16 David Winsemius <dwinsemius at comcast.net>:
> grid refers you to abline when"more fine tuning is required", i.e. when the
> situation is not a regular grid.
> abline(v=286.16, lty="dotted")
> If you had a vector, vec, then this should do the trick:
> abline(v=vec, lty="dotted")
> David Winsemius
> On Mar 16, 2009, at 4:25 PM, Laura Rodriguez Murillo wrote:
>> Hi dear all!
>> I wonder if anybody can help me with this:
>> I have a plot:
>> allchr <- read.table("allchrtog.txt", header=F)
>>  "V1" "V2" "V3" "V4"
>>> plot(V1,V3, type="n")
>> and I want to add grids to the plot but just at specific x points. So
>> for example, the first would be at 286.16 in the x axis.
>> Does anybody know how can I add these lines?
>> Thank you so much!
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
More information about the R-help