Is because your first column and the object is a data.frame: dotchart(as.matrix(intersect.data[-1]))
On Wed, Jun 4, 2008 at 3:42 PM, Nair, Murlidharan T <[EMAIL PROTECTED]> wrote: > I am trying to plot the following data using dotchart > > intersect.data<-structure(list(X = structure(c(1L, 3L, 8L, 9L, 10L, 11L, > 12L, > 13L, 14L, 15L, 2L, 4L, 5L, 6L, 7L), .Label = c("1-100", "1001-1100", > "101-200", "1101-1200", "1201-1300", "1301-1400", "1401-1500", > "201-300", "301-400", "401-500", "501-600", "601-700", "701-800", > "801-900", "901-1000"), class = "factor"), svmT.mcmT = c(10L, > 9L, 5L, 7L, 10L, 6L, 7L, 6L, 7L, 7L, 7L, 7L, 10L, 9L, 8L), svmT.svmCell = > c(4L, > 5L, 8L, 6L, 3L, 4L, 7L, 10L, 6L, 5L, 6L, 9L, 10L, 8L, 6L), svmT.mcmCell = > c(12L, > 11L, 4L, 8L, 7L, 11L, 5L, 9L, 5L, 7L, 7L, 6L, 6L, 8L, 5L), mcmT.svmCell = > c(1L, > 6L, 7L, 7L, 7L, 6L, 5L, 9L, 14L, 4L, 2L, 6L, 3L, 7L, 4L), mcmT.mcmCell = > c(6L, > 7L, 12L, 9L, 13L, 7L, 11L, 4L, 8L, 11L, 11L, 12L, 4L, 15L, 16L > ), svmCell.mcmCell = c(5L, 9L, 7L, 7L, 8L, 6L, 3L, 9L, 4L, 13L, > 9L, 10L, 5L, 7L, 7L)), .Names = c("X", "svmT.mcmT", "svmT.svmCell", > "svmT.mcmCell", "mcmT.svmCell", "mcmT.mcmCell", "svmCell.mcmCell" > ), class = "data.frame", row.names = c(NA, -15L)) > > dotchart(intersect.data) > > > It gives me an error saying x must be numeric. I can edit it manually > looking at the VADeaths example but is there an easy way to handle this? > > Thanks ../Murli > > ______________________________________________ > R-help@r-project.org 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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org 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.