Description Usage Arguments Value Examples
To Plot China Map
1 2 3 4 5 6 7 8 9 | cnmap(data, shapename, choice = NULL, heat.variable = NULL,
heat.color = c("gray", "red"), bubble.size.variable = NULL,
bubble.color.variable = NULL, bubble.color = c("#8f62ff", "#0000ff"),
bubble.size = 4, lgd.bubble.color.title = NULL,
lgd.bubble.size.title = NULL, lgd.heat.title = NULL,
lgd.title.size = 13, lgd.text.size = 10, text.show = TRUE,
text.alpha = 1, text.size = 5, text.color = "black",
border.color = "gray", border.size = 0.5, segment.min.length = 0,
family = "sans", face = "plain", force = 0.5)
|
data |
dataframe |
shapename |
one string, name of shapes in data |
choice |
(optional) choice for shape names |
heat.variable |
string, variable name for heat map |
heat.color |
colors for heat map |
bubble.size.variable |
string, variable name for bubble size map |
bubble.color.variable |
string, variable name for bubble color map |
bubble.color |
colors for bubble map |
bubble.size |
size for all bubbles in bubble map |
lgd.bubble.color.title |
title for legend bubble color map |
lgd.bubble.size.title |
title for legend bubble size map |
lgd.heat.title |
title for legend heat map |
lgd.title.size |
size for legend title |
lgd.text.size |
size for legend text |
text.show |
logical. Whether to show map text |
text.alpha |
map text alpha, default is 1 |
text.size |
map text size, default is 5 |
text.color |
map text color, default is black |
border.color |
map border color, default is grey |
border.size |
map border size, default is 0.5 |
segment.min.length |
see |
family |
see |
face |
plain, bold or italic |
force |
see |
a ggplot2 object
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.