[R] dotchart

Nair, Murlidharan T mnair at iusb.edu
Wed Jun 4 20:42:04 CEST 2008

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


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

More information about the R-help mailing list