I am plotting home prices on a map using ggplot2
. However, the outliers of really expensive homes is making all of the colors on my plot look the same so I was hoping to use the median house price instead. Below is what I have so for which includes the regular home prices but not the median. How do I get the price to be a median?
ggplot(houses2, aes(fill = price)) +
geom_sf()+
labs(x = "Longitude",y = "Latitude", title = " Price by County") +
scale_fill_viridis_c("Price", labels = dollar) +
labs(title = "Price by County") +
theme_minimal()