I'm cutting a dataframe shp into discrete bins, some of which are negative values. I'm wondering how I can make an em dash in between negative values (e.g. "0 - -2.5") for the labels to appear more readable in the legend when plotting?
shp <- shp %>% mutate(discrete_var = cut(mean, c(-0.4,-0.10,-0.5,-0.025,0,0.05,0.1,0.15,4), labels = c("-10 -","-5 - -10","-2.5 - -5","0 - -2.5","0-5","5-10", "10-15","15-")))
