I've been working with some crime data from Kaggle. I've been able to produce bar charts and scatter plots grouped by police district. The data has individual records for each incident and the lat/long.
https://www.kaggle.com/datasets/currie32/crimes-in-chicago
I started working with maps and managed to get Tableau to plot every crime location on the base map with filters for year and "primary type". Now I want to create a choropleth by police district. I've tried linking the data source to the shapefile in Data > Edit Blend Relationship then link the district numbers. Not sure of the next steps.
I have been using the shapefile from this site:
https://data.cityofchicago.org/Public-Safety/Boundaries-Police-Districts-current-/fthy-xz3r
I haven't been able to find any tutorials about building a choropleth using a custom spatial file. Any suggestions?
Related
I'm totally new to shapefiles so I might be missing something obvious but.
I'm trying to get the following shapefiles
A Global shapefile that only has the world boundaries
Every continent shapefile that only has the continent boundaries and no country included.
Any suggestions on where I can get such files? All I can get is one large world shapefile that contains all continents and countries.
You could use the land polygons from the Natural Earth dataset. There is also a countries layer that has a continent attribute that you could dissolve on to create the continents layer (I've never seen that as a prebuilt dataset).
You could probably run a dissolve with QGIS or ArcGIS on a countries shapefile and get the continent boundaries but you might either have to have a continent field or create one yourself for the dissolve.
A world land area would be similar but have it dissolve all boundaries.
Or you could search and find this link which allows you to download it for free.
https://hub.arcgis.com/datasets/esri::world-continents/data?geometry=101.953%2C-89.382%2C-101.953%2C86.054
I have 2 tabs relating to the graph I'm working with. I have multiple graphs all working properly but one in particular. I have tried selecting different ranges to use for the data range, I have tried using different types of graphs. All the same I get the same results. The other graphs use the same information from the same table.
The graph's purpose is to compare the Highest Price and the Lowest Price per item. HERE is a link to a sample sheet with the same information as the original. Thank you for any help you can give!
values needs to be numeric not text string so in worst case a conversion is needed:
=ArrayFormula({INDEX(SPLIT(F4:F13, " "),,1), INDEX(SPLIT(G4:G13, " "),,1)})
and then you can plot your chart...
I have a list of hundreds of thousand of addresses with their Latitude/Longitude data.
In a second table, I have the Latitude/Longitude of hundreds of gas stations.
I need to derive a table with the lat/long of the house, the distance to THE CLOSEST gas station, and the name of the gas station.
I'm trying to create a stream for SPSS Modeler (I'm using version 18.2).
In excel was fairly simple (see example below). In sheet one are the houses with lat/long, in sheet two the gas stations data, in sheet three how I did it in excel for a limited number of points, and in sheet four the resulting table. Basically, in excel I took the lat/long of each house and calculated the distance to all the gas stations and kept the smallest one.
I'll appreciate any directions or ideas on how to generate an SPSS Modeler stream to do something similar.
You can download my excel sample here: https://github.com/schapsis/calculating-distance-question
Please see the solution posted at https://developer.ibm.com/answers/questions/512605/how-to-calculate-distance-between-many-geographic/
The data I'm trying to plot in Power BI is of the format:
[SourceLatitude, SourceLongitude, DestLatitude, DestLongitude, Weight].
For every such row in the database, I want to draw a line between the two points with coordinates P1: (SourceLatitude, SourceLongitude) and P2:(DestLatitude, DestLongitude).
When I try to plot a map visualization, I can plot the points but how do I connect them? I'm using power BI for the first time. On surfing, some people have suggested to use Routemap custom visualization. Installed that but it needs some time parameter to be given which my dataset doesn't need.
Any pointers?
this a question from a very inexperienced user.
I have a table with electoral results, with this format:
I have merged this table with city shapes and can do a map visualization according to one of the columns.
My problem comes when I want to do filters and queries. I am quite puzzled.
I know how to activate and deactivate layers from an html document, calling (showing and hiding) different fusion tables.
What I want to try now is using a sole fusion table for different ways to show the data. I don't know if this is possible.
For example, possible queries to show on different maps called from a html page:
show only rows with type (column H) 'rural' (filter?)
fill polygons with colours according to the greater value among column B, D and F (if value for party1_2012 is > than party 2 2012 and > than party 3 2012, polygon colour is blue; if party 2 wins, fill is red...)
fill polygons with colours according to the difference between 2 columns (i.e. 2010 and 2012 results)
map combining option 1 (when showing only rural city), apply option 3 (show a colour according the difference between 2 columns)
Inspired by John Keefe's post Making AP Election Data Easy with Fusion Tables, tried to play with data, but no luck. I'm too inexperienced. Is it the way to go generate csv and call them from a webpage? Can I just generate the maps on Fusion Tables and obtain a url to call the queried mapfrom a webpage?
I appreciate suggestions or ways to go.
Thanks in anticipation!
Frans