[R] dotchart

From: Nair, Murlidharan T <mnair_at_iusb.edu>
Date: Wed, 04 Jun 2008 14:42:04 -0400


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_at_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. Received on Wed 04 Jun 2008 - 20:02:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 04 Jun 2008 - 20:31:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive