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

get_theme函数不能正常使用 #56

Open
shiyi-pan opened this issue Jul 30, 2021 · 1 comment
Open

get_theme函数不能正常使用 #56

shiyi-pan opened this issue Jul 30, 2021 · 1 comment

Comments

@shiyi-pan
Copy link

Lchiffon,
你好,我想用remapC绘制中国地图,同时不显示各省市的名称,我发现get_theme函数的labelShow参数理论上能实现这个功能,但是我在将其设置为labelShow = "F"的时候,绘制出来的图片仍然带有省份名称,请帮我看下哪里有问题,以下是我的代码,谢谢。

province <- c("黑龙江","吉林")
value <- c(26,20)
mydata <- data.frame(province,value)

out <- remapC(mydata,
maptype = 'china',
markLineData = NULL,
markPointData = NULL,
color = c('#1e90ff','#f0ffff'),
theme = get_theme(theme = "Sky",labelShow = "F"),
title = "",
subtitle = "",
markLineTheme = markLineControl(),
markPointTheme = markPointControl(),
geoData = NA,
mindata = NA,
maxdata = NA)

plot(out)

@liamxg
Copy link

liamxg commented Jan 26, 2022

remapC(mydata,
maptype = 'china',
markLineData = NULL,
markPointData = NULL,
color = c('#1e90ff','#f0ffff'),
theme = get_theme(theme = "Sky",labelShow = "F"),
title = "",
subtitle = "",
markLineTheme = markLineControl(),
markPointTheme = markPointControl(),
geoData = NA,
mindata = NA,
maxdata = NA)

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

2 participants