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之后显示 cannot coerce type 'S4' to vector of type 'double' #53

Open
xiaoyaojiushao opened this issue Aug 26, 2020 · 0 comments

Comments

@xiaoyaojiushao
Copy link

xiaoyaojiushao commented Aug 26, 2020

按照示例做了一下,发现
`> province=data.frame(province)

View(province)
ph1<-remapC(province,maptype = 'china',

  •         color = c('gray','white'),##颜色设置
    
  •         theme = get_theme('none',
    
  •                           lineColor='black',
    
  •                           backgroundColor='white',
    
  •                           titleColor='black',
    
  •                           borderColor = "black"),
    
  •         title = "",subtitle = "",
    
  •         markPointTheme = markPointControl(),
    
  •         mindata = 30000,
    
  •         maxdata = 150000)
    

plot(ph1)
Error in as.double(y) :
cannot coerce type 'S4' to vector of type 'double'
`

我寻思着可能是版本的问题,但是还是没办法解决啊,求教大神

sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

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