4

I want to create a small multiple graph, which is something like this or this.

I know that I can create a choropleth by using the styles panel:

enter image description here

Basically, I pick a column attribute, choose the classification mode, and classify. This results in the legend as pictured above. However, this is bin distribution off of one attribute POP1990, in this case the population in each state in 1990. I have attributes POP1991,POP1992,POP1993, and so on. I can individually classify them, and get 4 different bin distributions. But I want to get the bin distribution off of all POPYEAR columns so that they share one legend (like the small multiple example linked above). Is there a way to do that?

Basically, I want to create 4 individual choropleth maps per year, but I want the legend that they all use to be the same. Is there a way to do this? I know that there is this expression dialog:

enter image description here

But I'm not sure how I would use this to accomplish what I want. I saw this about creating small multiples with virtual layers, but I'm still not sure about the legend.

I'm new to QGIS.

5
  • Are you wanting to have many maps in the composer (one for each PoP year) and share one legend?
    – artwork21
    Commented Mar 2, 2017 at 19:38
  • @artwork21 Yes, thats what I would like! The individual graphs will be based on data per individual year, but I want the color scheme classification to be with all of the year columns if that makes sense.
    – ocean800
    Commented Mar 2, 2017 at 19:39
  • What do you mean by individual graphs (do you mean maps?)?
    – artwork21
    Commented Mar 2, 2017 at 19:43
  • @artwork21 Yes sorry maps is the correct word. Something like this
    – ocean800
    Commented Mar 2, 2017 at 19:44
  • As per the Tour there should be no chit chat so please do not include thanks or unnecessary statements of appreciation in your questions.
    – PolyGeo
    Commented Mar 2, 2017 at 19:51

1 Answer 1

5

In simple terms try this:

  1. Make duplicate copies (for each year) of layer you want to show in many maps within composer (right click layer in layer panel and select Duplicate option). Rename each layer name to the year which it will represent
  2. Style each layer to a different year POP field/column (use common class breaks for each year layer)
  3. Create a composer
  4. Turn off all layers except for one of the year layers, and zoom to extent if needed
  5. In composer, click Add new map button, re-size shift it to where you want it (this should show what is currently turned on in QGIS)
  6. Repeat step 4-5 until all year/maps are added within composer
  7. Finally, add map title and labels
3
  • Thanks! But, I was more confused about generating the common class breaks. The class breaks are generated when a specific POPYEAR is added to create a choropleth. Is there any way in QGIS to create those class breaks from multiple POPYEARs?
    – ocean800
    Commented Mar 2, 2017 at 20:35
  • 2
    Double click on each symbol values range within the style Layer Properties style form and change the value range to whatever common range you want to go with for each layer.
    – artwork21
    Commented Mar 2, 2017 at 20:45
  • is there anyway to systematically calculate this common class breaks ?
    – N00
    Commented Feb 24, 2020 at 5:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.