Hello,

I am attempting to use the "classInt" package in conjunction with
"rworldmap" package in R to construct a chloropleth. I want to use the
fixedBreaks argument to specify given breaks.

My data look like this:

> head(Maji)
              Country waterused   CC
1         Afghanistan      36      AFG
2             Albania         4       ALB
3             Algeria        52       DZA
4              Angola         0      AGO
5             Antigua         10    ATG
6           Argentina         4      ARG

and when I attempt,

> classInt <- classIntervals(ww[["waterused"]], n=5, style="fixed",
fixedBreaks=c(0, 25,50,75,100,4565))
*Warning message:*
*In classIntervals(ww[["waterused"]], n = 5, style = "fixed", fixedBreaks =
c(0,  :*
*  var has missing values, omitted in finding classes*

I've tried a number of variations of the argument "style" and have not been
successful and consequently my map is not correct. Do you have any
suggestions?

Thanks,

Smith

        [[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.

Reply via email to