[R] ggmap warning

Thierry Onkelinx thierry.onkelinx at inbo.be
Thu Jul 9 22:57:36 CEST 2015


Yes. Provide a reproducible example of your problem: the code and the data.
Op 9-jul.-2015 22:06 schreef "Chichi Shu" <chichi.shu op hotmail.com>:

> Hi,
>
> I limit my data to just two fields. Longitude and latitude. I first used
> is.finite to check each of the long and lat values to make sure they are
> finite values.
>
> Then when I use ggmap again, it still tells me that it removed the
> majority of the records bec of non-finite values.
>
> Any other suggestions?
>
> Thanks!
>
> From: Thierry Onkelinx
> Sent: Wednesday, July 01, 2015 2:50 AM
> To: Chichi Shu
> Cc: r-help op r-project.org
> Subject: Re: [R] ggmap warning
>
> Your data contains 4945 rows with missing or infinite values. These cannot
> be handled by stat_density2d and are dropped for that reason.
>
> Best regards,
>
> Thierry
>
>
> Op 1 jul. 2015 08:43 schreef "Chichi Shu" <chichi.shu op hotmail.com>:
>
>   Dear Listers
>
>
>
>   I’ve been using ggmap package to produce crime Heat map. But I’ve
> noticed the following warning message when executing my code:
>
>
>
>   In loop_apply(n, do.ply) :
>
>     Removed 4945 rows containing non-finite values (stat_density2d).
>
>
>
>   I’ve googled this message but I couldn’t find any good answers.
>
>
>
>   Is this related to ggmap package or one of its depending package?
>
>
>
>   What does it mean?
>
>
>
>   Thanks!
>
>           [[alternative HTML version deleted]]
>
>
>   ______________________________________________
>   R-help op r-project.org mailing list -- To UNSUBSCRIBE and more, see
>   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.
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help op r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

	[[alternative HTML version deleted]]



More information about the R-help mailing list