Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_city函数无法画离散图例 #55

Open
zbowang opened this issue Mar 11, 2020 · 0 comments
Open

plot_city函数无法画离散图例 #55

zbowang opened this issue Mar 11, 2020 · 0 comments

Comments

@zbowang
Copy link

zbowang commented Mar 11, 2020

按照这篇文章的做法

plot(x, region='湖北', chinamap=m)

可以正常运行,但

plot(x, region='湖北', chinamap=m, continuous_scale=FALSE)

会报错

Error in cut.default(map2$confirm2, discrete_breaks, include.lowest = T,  : 
  'x'必需为数值

怀疑是因为这一行应修改为

map2$confirm2 <- cut(map2$confirm, discrete_breaks,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant