File:Jack the ripper rossmo 1.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(992 × 744 pixels, file size: 939 KB, MIME type: image/png)

Captions

Captions

Jack The Ripper map with Rossmo analysis

Summary

[edit]
Description
English: Jack The Ripper map with Rossmo analysis
Date
Source Own work
Author Merikanto
Camera location51° 31′ 02.58″ N, 0° 04′ 13.27″ W  Heading=0° Kartographer map based on OpenStreetMap.View this and other nearby images on: OpenStreetMapinfo

Source of location data is

"Jack The Ripper significiant locations"

https://www.google.com/maps/d/viewer?mid=1nkmEUBhDk400CTeJwDwLkHAz6JA&ie=UTF8&hl=en&msa=0&z=15&ll=51.51856111815372%2C-0.06886693853310755

Map is Leaflet Openstreetmap (OSM)

"R" code to produce the map

    1. Jack the Ripper, locations
  1. Rossmo analysis
    1. "R" rgeoprofile
  2. leaflet openstreetmap
    1. 0000.0004a 9.8.2023
    1. install needd libraries
    2. must do this on first time, if you dop not have Rcpp
  1. install.packages("Rcpp", repos ="https://ftp.acc.umu.se/mirror/CRAN/")
    1. install_packages("devtools")
  2. library("devtools")
  3. devtools::install_github("timelyportfolio/exportwidget")
  4. install.packages("leaflet")
  5. install.packages("htmltools")
  6. install.packages("leaflet.minicharts")
  7. install.packages("htmlwidgets")
  8. install.packages("mapview")
  9. install.packages("magick")
  10. install.packages("webshot")
  11. install.packages("rgeoprofile")


library(Rcpp)


library(rgeoprofile) library(leaflet) library(htmltools) library(exportwidget) library(leaflet.minicharts) library(htmlwidgets) library(mapview) library(webshot)

library(magick)



names<-c("Nichols","Eddowes","Kelly","Chapman","Stride") lats<-c(51.520036,51.513728, 51.518679,51.520447,51.513729) lons<-c(-0.060401,-0.078042,-0.075092,-0.072564,-0.06559) ages<-c(43,46,35,47,44) dates<-as.Date(c('1888-08-31','1888-09-30','1888-11-09','1888-09-08','1888-09-30') )


daata<-data.frame(names, ages,dates, lats, lons) names(daata)<-c("name","age","date","lat","lon")


cgt <- cgt_profile(daata$lat, daata$lon) ## rossmo


  1. cgt <- neg_exp_profile(daata$lat, daata$lon ,method = "CrimeStat") ## ok
  1. cgt <- norm_profile(daata$lat, daata$lon) # negative
  1. cgt <- lognorm_profile(daata$lat, daata$lon ) ## nok, too flat


    1. cgt <- trun_neg_exp_profile(daata$lat, daata$lon ) ## nega, maximal distance


    1. ok
  1. cgt <- neg_exp_profile(daata$lat, daata$lon , method = "Dragnet")


  1. cgt <- neg_exp_profile(daata$lat, daata$lon , method = "Dragnet", buffer = TRUE) ## nega ympyrät



g_map = sp::SpatialPixelsDataFrame(points = cgt[c("lons", "lats")], data = cgt) g_map <- raster::raster(g_map)

raster::crs(g_map) <- sp::CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs")

pal <- colorNumeric(pals::parula(200), raster::values(g_map),

                   na.color = "transparent")


  1. 51.517384, -0.0703541

cgt_map <- leaflet(options = leafletOptions(zoomControl = FALSE) ) %>% addTiles() %>% setView(lng = -0.0703541, lat = 51.517384, zoom = 16) %>% addRasterImage(g_map, colors = pal, opacity = 0.45) %>% #addLegend(pal = pal, values = raster::values(g_map), title = 'Score') %>% #addMarkers(lng=lons,lat=lats,popup=names) %>% addCircleMarkers(lng = daata$lon, lat = daata$lat, radius = 10, opacity = 1,

                 stroke = FALSE, fillOpacity = 0.75, weight = 2,
                 fillColor = "red")
                  

saveWidget(cgt_map , file = "rosmo.html", selfcontained = FALSE)

  1. saveWidget(cgt_map , file = "rosmo2.html", selfcontained = TRUE)

webshot("rosmo.html", file = "rosmo.png",

       cliprect = "viewport")
  1. my_image <- image_read("rosmo.png")
  2. my_svg <- image_convert(my_image, format="svg")
  3. image_write(my_svg, "rosmo0.svg")




Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:27, 30 July 2021Thumbnail for version as of 16:27, 30 July 2021992 × 744 (939 KB)Merikanto (talk | contribs)Cnhange of script: wirect webshot with R script
09:11, 28 July 2021Thumbnail for version as of 09:11, 28 July 20211,086 × 678 (2.83 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata