Open Nowosad opened 1 year ago
I experienced the same issue when trying to set the legend position directly with numeric values in vector c(), which contradicts the documentation. However, if you are looking for a practical workaround in the meantime, I recommend using the tm_pos_in() function and its pos.h and pos.v options within the legend.position() function. From your code above:
tm_shape(nz) + tm_polygons("Median_income") + tm_layout(legend.position = tm_pos_in(pos.h = 0.02, pos.v = 0.02))