When trying to plot a dotmap with tmap:
tm_shape(points)+
tm_dots(col="Party")+
tm_shape(districts)+
tm_borders(alpha=0.5)+
tm_legend()
I want the points to remain at their original scale, but want the symbols in the legend to be larger, as right now they are the same size of the individual dots and thus very hard to see. If possible, I'd like to have them in rectangles.
This is how summary()
on my dataset looks like:
Party geometry
Length:61457 POINT :61457
Class :character epsg:3006 : 0
Mode :character +proj=utm ...: 0
tm_legend(scale=2)
? – Chelmy88 Aug 19 '19 at 12:28scale=1
intm_dots()
(and keep thescale=2
) – Chelmy88 Aug 19 '19 at 12:39tm_shape(metro) + tm_dots(col="pop1950")
usingmetro
from?tm_dots
. Dots on map and dots on legend are different and okay sizes. Can you edit and include an image? Or show summary of your data? – Spacedman Aug 19 '19 at 15:45