1

I am checking qtm helpfiles, but it doesn't say how to change legend percentage.

library(ggmap)
library(rgdal)
library(rgeos)
library(maptools)
library(dplyr)
library(tidyr)
library(tmap)

doe <- readOGR(dsn = ".", layer = "doesep")
qtm(doe, fill = "sep12_PERC", fill.title = "Installs")

This line qtm(doe, fill = "sep12_PERC", fill.title = "Installs") creates this map, but we would like Installs to be

0 to 24
25 to 49
50 to 74
75 to 100 

enter image description here

How to approach this?

Thanks!

Rhonda
  • 1,661
  • 5
  • 31
  • 65

1 Answers1

3

If you are using funcion qtm() then you should add argument fill.style="fixed" to use your own fill scale and with argument fill.breaks= add break points.

qtm(doe, fill = "sep12_PERC", fill.title = "Installs",
                 fill.style="fixed",fill.breaks=c(0,25,50,75,100))
Didzis Elferts
  • 95,661
  • 14
  • 264
  • 201