Skip to content
Prev 21871 / 29559 Next

pieSP: non-finite coordinates

Greetings!

I am working with the following code. I am having an error called
"non-finite coordinates". May you tell me what does it exactly mean and how
to fix it?

On the other hand, I see that my original percentages in "pie.chart" is
changed when converting to "pies" (I have written them both in boldface).
Why does this happen and how can I fix it?

Thank you in advance!
wana long   lat prob1 prob2 prob3 prob4

*[1,] 2125149 3.42 42.42   106  5292  5198     0[2,] 2125147 3.42 42.25
15  4241  5205     0*
class       : SpatialPointsDataFrame
features    : 2
extent      : 3.42, 3.42, 42.25, 42.42  (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +ellps=WGS84
variables   : 5
names       :    wana, prob1, prob2, prob3, prob4
min values  : 2125147,    15,  4241,  5198,     0
max values  : 2125149,   106,  5292,  5205,     0
pies<-pieSP(pie.chart,zcol=c(paste0("prob",c(1:length(SUB.COL.NAMES)))),max.radius=10000)
*Error in .local(obj, ...) : non-finite coordinates*
class       : SpatialPolygonsDataFrame
features    : 8
extent      : 3.298831, 3.540708, 42.16017, 42.47187  (xmin, xmax, ymin,
ymax)
coord. ref. : +proj=longlat +ellps=WGS84
variables   : 8
names       : id,    wana, prob1, prob2, prob3, prob4,   pie, pie2

*min values  :  1, 2125147,    10,   489,  5379,  3071, prob1,    1 max
values  :  2, 2125149,    17,   598,  5775,  4718, prob4,    4 *