Tree data Source

#install.packages(c("leaflet", "sp"))
library(sp)
library(leaflet)

deadtrees_sample <- sample_n(deadtrees,100)

#To ,ake a map of the coordinates:
#deadtrees_coords <- coordinates(deadtrees_sample) <- ~longitude+latitude
leaflet(deadtrees_sample) %>% 
      addCircleMarkers(fillOpacity = 0.5)  %>% 
      addTiles() # %>%
## Assuming "longitude" and "latitude" are longitude and latitude, respectively
  #addMarkers(clusterOptions = markerClusterOptions()) %>% addTiles()
## # A tibble: 15,809 Ă— 6
## # Groups:   spc_latin [1]
##    tree_id longitude latitude spc_latin spc_common status
##      <dbl>     <dbl>    <dbl> <chr>     <chr>      <chr> 
##  1  208322     -73.9     40.7 <NA>      <NA>       Dead  
##  2  188609     -74.0     40.8 <NA>      <NA>       Dead  
##  3  189526     -74.0     40.7 <NA>      <NA>       Dead  
##  4  192569     -73.9     40.7 <NA>      <NA>       Dead  
##  5  179766     -74.0     40.6 <NA>      <NA>       Stump 
##  6  181973     -73.9     40.6 <NA>      <NA>       Stump 
##  7  184110     -73.9     40.9 <NA>      <NA>       Dead  
##  8  174299     -73.9     40.7 <NA>      <NA>       Stump 
##  9  188115     -73.9     40.8 <NA>      <NA>       Dead  
## 10  208396     -73.9     40.7 <NA>      <NA>       Stump 
## # … with 15,799 more rows

The number of Tree observations is 683788. The number of Tree Columns or Categories is 19.

This is to show where data is missing and can help coordinate on where resources should be focused to to reduce and or eliminate the missing data to create a more complete assessment of the status of information.

##     tree_id          tree_dbh        stump_diam         curb_loc        
##  Min.   :     3   Min.   :  0.00   Min.   :  0.0000   Length:683788     
##  1st Qu.:186583   1st Qu.:  4.00   1st Qu.:  0.0000   Class :character  
##  Median :366215   Median :  9.00   Median :  0.0000   Mode  :character  
##  Mean   :365205   Mean   : 11.28   Mean   :  0.4325                     
##  3rd Qu.:546170   3rd Qu.: 16.00   3rd Qu.:  0.0000                     
##  Max.   :722694   Max.   :450.00   Max.   :140.0000                     
##     status             health           spc_latin           steward         
##  Length:683788      Length:683788      Length:683788      Length:683788     
##  Class :character   Class :character   Class :character   Class :character  
##  Mode  :character   Mode  :character   Mode  :character   Mode  :character  
##                                                                             
##                                                                             
##                                                                             
##    problems           sidewalk          root_stone         root_grate       
##  Length:683788      Length:683788      Length:683788      Length:683788     
##  Class :character   Class :character   Class :character   Class :character  
##  Mode  :character   Mode  :character   Mode  :character   Mode  :character  
##                                                                             
##                                                                             
##                                                                             
##   root_other         trunk_wire         trnk_light         trnk_other       
##  Length:683788      Length:683788      Length:683788      Length:683788     
##  Class :character   Class :character   Class :character   Class :character  
##  Mode  :character   Mode  :character   Mode  :character   Mode  :character  
##                                                                             
##                                                                             
##                                                                             
##   brch_light         brch_shoe          brch_other       
##  Length:683788      Length:683788      Length:683788     
##  Class :character   Class :character   Class :character  
##  Mode  :character   Mode  :character   Mode  :character  
##                                                          
##                                                          
##