New answers tagged

2

There is no way to do this currently - it has been under discussion by QGIS developers for a while. https://hub.qgis.org/issues/3239


1

I think the key is to make sure both: Map has 'lock layers for map item' and 'lock layer styles for map item' checked Legend has 'Auto-update' unchecked Here is a print composer where the top (pink) map is set as described above, and the 2nd map is being drawn from the same layer as the 1st map:


1

At least in QGIS 2.12 this can be done by setting what map to populate the legend from in the legen item properties. In the Map dropdown box.


1

You just need to cut the data first: library(rgeos) library(maptools) library(raster) library(ggplot2) library(dplyr) library(ggthemes) library(ggalt) library(scales) #load shapefile ken <- getData("GADM", country = "KEN", level = 1) # make it less complex ken <- SpatialPolygonsDataFrame(gSimplify(ken, 0.001, TRUE), data=ken@data) #fortify for ...


2

Include fill/color in your aesthetics mapping: ggplot() + geom_polygon(data = tz.prj, aes(long, lat, group = group), fill = "#f1f4c7", color = "#afb38a") + geom_point(data = tz.c, aes(lon, lat, fill = "Hospitals"), pch = 21, color = ...



Top 50 recent answers are included