[R] connecting points on a graph

Jolene Sutton jolene.sutton at gmail.com
Wed Sep 30 01:01:54 CEST 2009


Hi,

I am trying to connect points on a graph that originate from *different
columns of data*. For each sample I have minimum and maximum data points and
I would like to draw a line connecting these in order to visualize the
spread, as well as where each sample is in relation to the x-axis. So far I
can generate the points, but the only lines I have been able to make join
all the minimum values together OR all the maximum values together. I would
like to graph the lines without having manually do one at a time. I have
included a sample of my data below.

I have attached a PDF file of what I would like the final product to look
like.

Any suggestions would be greatly appreciated!!

cheers,
Jolene


 locus min max  K9/10* 70 72  Pcc40 80 81  2F9 84 100  4E8/Pca12 96 108
Pau6 99 103  Pau20 100 113  Pau9 103 129  Pocc1* 104 128  Pau7 105 111


-- 
Jolene Sutton
   PhD candidate
   Department of Zoology
   University of Otago
   340 Great King St.
   PO Box 56
   Dunedin 9054
   New Zealand

   Fax: (64) 3-479-7584
   Cell: (64) 027-261-6121
   E-mail: jolene.sutton at gmail.com

   www.erg.otago.ac.nz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: standardized saddleback loci.pdf
Type: application/pdf
Size: 5138 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090930/73c20aae/attachment-0002.pdf>


More information about the R-help mailing list