Skip to content

plot之后显示 cannot coerce type 'S4' to vector of type 'double' #53

@xiaoyaojiushao

Description

@xiaoyaojiushao

按照示例做了一下,发现
`> 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions