提问人:Anthony Fasano 提问时间:9/1/2020 更新时间:9/1/2020 访问量:156
当我使用$legend制作情节时,图例没有出现在分区统计中
Legend not showing up in choropleth when I make the plot using $legend
问:
managerLeftWrong$title = "Profession Subject, Left Map, Inumerate"
managerLeftWrong$legend= "% Evacuated"
managerLeftWrong$ggplot_scale = scale_fill_gradientn(colors = c("white", "dodgerblue4"), limits = c(0,100))
managerLeftWrong$set_zoom_zip(state_zoom=NULL, county_zoom=NULL, zip_zoom = c(coastal, zoneA, zoneB, zoneC), msa_zoom=NULL)
managerLeftWrong$set_num_colors(1)
managerLeftWrong$render()
managerLeftWrong$legend
当我在控制台中检查 managerLeftWrong$legend 时,控制台返回[1] "% Evacuated"
$title有效,但由于某种原因,传说不起作用。有人对此有解决方法吗?
答:
0赞
Anthony Fasano
9/1/2020
#1
''''managerLeftWrong$ggplot_scale = scale_fill_gradientn(name = “% Evacuated”, colors = c(“white”, “dodgerblue4”), limits = c(0,100))''''
我需要添加这个
评论