[R] R help

John Kane jrkrideau at yahoo.ca
Wed Jun 6 19:21:03 CEST 2007


--- 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 ?
> 
> scott

Do 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))



More information about the R-help mailing list