I have been using both R and QGIS to study GIS, with the intention of publishing choropleth maps to the web. Both pieces of software allow a zoom function on static maps. But, for animated time-series, the only option appears to be to join a series of time snapshots into a movie file.
I would like the user to be able to zoom in during a time series animation.
I'm animating onto a map of New Zealand, and my time-series is events by suburb. While I can aggregate suburb into territorial local authority area to have larger polygons, this removes the suburb detail. Suburb is likely to remain of interest to users.
Will I have to create a series of animations, one for each general geographical area that people might be interested in (e.g. Auckland, Wellington, Christchurch)? That will provide a "selected zoom" option for users. It also means I have to create a set of static maps per predicted geographical location of user interest.
I can't find any solutions for combining zoom and time series with choropleth maps, at least with R and QGIS.
Does anyone have an example of this type of web implementation, preferably showing the options used (QGIS) or the code (R)?
Related
How do I create datavisual shapes for R package.
Just like there are heatmaps, bar charts, pie charts, etc.
For instance, I wish to create a car as a datavisual shape in R. Perhaps use it as a map. And give users the options to label the components
What do I search in google to create such a thing?
For instance I would like R (I'm used to R) to generate a user-input program where
product-to-repair-tires will point to tires
tire-pressure will point to each of the 4 tires
number-of-oil-changes will point to oil tank
type-of-fuel (variables gasoline,diesel,liquified petroleum,etc) will point to fuel tank.
I want this custom visual to
Have words and/or icons pointing to it
Be treated as a map. For instance, tires passed inspection by 80%, brake pads passed by 20% (hence need a replacement), windshield wipers are 100% perfect, bumper is can widthstand impact 30% (need replacement)
Can be used to demonstrate car health over time. We can include this in a report like Carfax that show when the Car was manufactured to possible accidents, defects as it passed owners.
In other words, custom visual should tell the life and health of a car in few words.
I'm plotting ACS data (counts of low-income children) for each county across the entire U.S. I don't have any markers, just a county shapefile and 6 values for each county that are in separate layers.
Unsurprisingly this is too large for browsers to handle. I've seen some similar questions here that deal with clustering, but since I have nothing to cluster I'm starting a new question.
I've tried breaking it up into 6 regional maps, but even those are too much.
Is there some way to lower the footprint, but still have all the county specific data?
I've looked at tilemill and other options for only loading the data the user is currently viewing and based on the zoom level, but I can't find any information on how to go from an R generated leaflet map to something like that. Alternatives using this route are useful as well.
You can try to simplify the polygons using the rmapshaper package and then try visualising it with mapview. The former will help get rid of 'unnecessary' polygon vertices, while the latter has dedicated functions to enable leaflet rendering of large data (ballpark around 100k features - depending on complexity).
You might also consider the tigris package, which gets you direct access to low-resolution county shapefiles within R:
library(tigris)
library(leaflet)
cty <- counties(cb = TRUE, resolution = "20m")
leaflet(cty) %>% addTiles() %>% addPolygons()
This should allow your Leaflet map to perform well in-browser as the polygons are pre-simplified, if you choose to go this route.
I would like to use ggmap to plot several data points on top of a koppen-geiger climate map.
The kopper-geiger data and GIS/KMZ maps can be downloaded here:
http://koeppen-geiger.vu-wien.ac.at/present.htm
I've managed to have a code to plot the points on regular maps, obtained through the get_map function but I fail to use other maps such as koppen-geiger.
Any help will be appreaciated!
Your basic problem is that the map you are attmepting to use is an image file that is not georeferenced. So unless you want to go through the unnecessary and probably time consuming process of georeferencing this image yourself, you will be better taking an alternative approach. There are perhaps a few ways to do this. But, unless you have very few data points to overlay on the map which you can place manually using the lat-long grid of the image, then the least painful method will certainly be to redraw the map yourself using the shapefile.
This is not the right place to give you an introductory lesson on GIS, but the basic steps are to
Download shapefile (which is available at the same website as the image you linked)
Project map to desired coordinate system
Plot map, coloring by climate class
Color the ocean layer
Add labels, legend, and graticule, as desired
Overplot with your own climate data, and legend for these.
If you are unsure how to approach any of these steps, then take an introductory course on GIS, and search the Web for instructional materials. You may find this resource useful.
https://cran.r-project.org/doc/contrib/intro-spatial-rl.pdf
I want to generate reports in Graph. Suppose I want to see my sales in all over india. I want to see in india map chart. So I would be able to see this state sales is this much and so on. I have generated bar chart, pie chart and line chart using Hight Charts. But now I want to generate map chart. But I am not getting how to go through it.
HighCharts has some pre-alpha proof of concepts on doing heat maps (or choropleth). See this post here. It is not in main released version.
Now, you could use any number of other JS libraries to do this. There are essentially 3 steps:
Get mapping data as SVG (or some other format). These are the
shapefiles used to draw the outlines of the geographic features you
want.
In these mapping shapefiles there is an ID associated that is
unique to it. Now assign your data values to this ID/area.
Using D3, raphael, etc draw the shapefiles and link the data. If you have large amounts of cash laying around you can give it to ESRI to purchase ESRI ArcGIS.
I am new to GIS and I am trying to deploy my own off-line map server.
I have found very interesting open source tools like: geoserver.
I have downloaded OpenStreetMap data from geofabrik.de
In the packages I downloaded from geofabrik we find different layers with diffrent information: landuse, natural, places, railways ... but not the base map i.e: the geographic map with country border and no other information.
My question is:
How can I get (download) this base map layer in order to use it off-line?
Thanks for any help.
I had exactly the same project recently. I tried several world maps (CloudMate, NaturalEarth) to put under geofabrik extractions. Most of them didn't have enough resolution to display properly on higher zoom levels.
Finally, I found ThinkGeo extractions. It contains a "complete world landmass polygons" layer, which is good enough for a background layer on any zoom levels. It turned out that ThinkGeo extractions for separate countries contain country borders and have higher quality than geofabrik. (I experienced missing objects with geofabrik.)
So I came up a solution displaying the landmass layer, and some of the countries depending on the focus of the project.
I'd recommend you to try ThinkGeo. They do weekly update on data.