I'm having some trouble trying to plot a raster in tmap
. It has 14 unique classes and all of them display fine with tmap_mode("plot")
. However when I set tmap_mode("view")
some classes do not display at all.
Left hand side of the area, which is Suburban(yellow) in the static map, does not display on the interactive map even though it's visible in the legend. Both maps were created using qtm
- I tried changing the palette etc. but nothing worked.
I'm assuming I'm making a mistake and there is something obvious that I'm doing wrong.
> levels(lcm)
[[1]]
ID Habitat
1 1 Broadleaf Woodland
2 2 Coniferous Woodland
3 3 Agriculture and Horticulture
4 4 Improved Grassland
5 5 Rough Grassland
6 6 Neutral Grassland
7 10 Heather
8 11 Heather Grassland
9 14 Inland Rock
10 16 Freshwater
11 20 Littoral Sediment
12 21 Saltmarsh
13 22 Urban
14 23 Suburban
tmap_mode("plot")
qtm(lcm)
tmap_mode("view")
qtm(lcm)