Dear R-users,

I have some nonstandard data set which I would like to plot but don't know how to do it in R. The data is in a matrix where the rows represent samples and the columns represent locations. The entries of the matrix are 0's and 1's, where 1 represents an event and 0 represents a non-event. e.g.

aberrations <- matrix(rbinom(1000, 1, 0.8), nrow=20, ncol=50, dimnames=list(c(paste("sample",1:20,"")), c(1:50)))

In addition, consecutive 1's in a given sample represents intervals of events.

With this matrix I would like to produce a plot with the samples on the y-axis and the locations on the x-axis. A black dot should be plotted for any event and consecutive black dots should be connected by a line to represent intervals.

How can I produce such a plot in R?

Thanks for any help,
Stacey Burrows



      __________________________________________________________________
[[elided Yahoo spam]]
	[[alternative HTML version deleted]]

