Hi, am getting this error when I ever I put in my code. Could anyone help me? I don't understand how to fix the unused argument. Below is the full code.
Error in tm_view(alpha = 0.85, basemaps = "Stamen.TonerLite", view.legend.position = c("right", :
unused argument (basemaps = "Stamen.TonerLite")
tmap_mode("view")
tm_shape(single_state_bg_geo) +
tm_fill(
col = "median_income",
palette = "Greens",
style = "jenks",
contrast = c(0.3, 1),
title = "Median NC Income",
textNA = "Not Available",
id = "NAME",
popup.vars = c(
"Median NC Income" = "median_income",
"Total Population" = "total_pop"
),
popup.format = list(
median_income = list(fun = make_dollar),
total_pop = list(format = "f", digits = 0)
),
legend.format = list(fun = make_dollar)
) +
tm_borders(col = "darkgray") +
tm_view(
alpha = 0.85, basemaps = "Stamen.TonerLite", view.legend.position = c("right", "bottom"))