Hi, I wonder whether R can finish the following project: I want to make a chart to represent 10 genes. Each gene has orientation and length. Therefore, a gene can be represented by arrows. Can R be used to draw 10 arrows in one line ? scott --------------------------------- [[alternative HTML version deleted]]
Yes, but you need to be a bit more specific... When it comes to graphs and drawing lines, there isn't much R can't do... -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of scott flemming Sent: 06 June 2007 04:49 To: r-help at stat.math.ethz.ch Subject: [R] R help Hi, I wonder whether R can finish the following project: I want to make a chart to represent 10 genes. Each gene has orientation and length. Therefore, a gene can be represented by arrows. Can R be used to draw 10 arrows in one line ? scott --------------------------------- [[alternative HTML version deleted]] ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
On 6/5/07, scott flemming <scottflemming at yahoo.com> wrote:> Can R be used to draw 10 arrows in one line ?Um, sure. Assuming you actually also want to know how to do it, why don't you take a look at the help for arrows(). Sarah -- Sarah Goslee http://www.functionaldiversity.org
--- scott flemming <scottflemming at yahoo.com> wrote:> Hi, > > I wonder whether R can finish the following project: > > I want to make a chart to represent 10 genes. Each > gene has orientation and length. Therefore, a gene > can be represented by arrows. > > Can R be used to draw 10 arrows in one line ? > > scottDo you mean something like this? x <- 1:10 y <- 1:10 plot(x,y, type="n" ) arrows(c(1,4,6),c(3,3,3), c(2,3, 7), c(4,4,2))
scott flemming wrote:> Hi, > > I wonder whether R can finish the following project: > > I want to make a chart to represent 10 genes. Each gene has orientation and length. Therefore, a gene can be represented by arrows. > > Can R be used to draw 10 arrows in one line ? >Hi Scott, Maybe the feather.plot function in the plotrix package is what you want. Jim