Create a 3D - histogram using latitudes and longitudes in R

r
3d
histogram
plot

#1

Hi,

I have a data frame df in which I have the longitudes and the latitudes of some place and about 800000 records.

head(df)
X Y
1 -122.4259 37.77460
2 -122.4259 37.77460
3 -122.4244 37.80041
4 -122.4270 37.80087
5 -122.4387 37.77154
6 -122.4033 37.71343

I want to plot a 3D histogram with those coordinates so that I would know the density where most of the records lie. How can I do this using R? Which libraries or functions are best for such 3D plots?

thanks


#2

try this