Skip to content
Prev 294347 / 398503 Next

ggplot simple question.

That does not look like a matrix but a data frame.  Do a class(dataname) to check.

It is much better to present the data in a useable format.  Have a look at ?dput for a way to provide the data.

However if we assulme your data is xx, this may do what you want if I understand you correcctly.

xx1  <-data.frame( t(xx[, 2:6]))
xx1[,5]  <- names(xx[2:6])
names(xx1)  <- c(letters[1:4], "Name")
ggplot(xx1, aes(x=factor(Name), a))  + geom_point()

John Kane
Kingston ON Canada
____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM?, MSN? Messenger, Yahoo!? Messenger, ICQ?, Google Talk? and most webmails