尝试更改高图等值区域图的颜色,但所有显而易见的方法似乎都没有。示例尝试:
mp <- highchart() %>%
hc_add_series_map(usgeojson, Kaiser_insurance_coverage_2016, name = "Female",
value = "Female", joinBy = c("woename", "Location")) %>%
hc_plotOptions(series = list(color = "#C5C889")) %>%
hc_legend(valueDecimals = 0, valueSuffix = "%",
verticalAlign = "top")
然后替代尝试:
hcmap("custom/world-eckert3-highres",
data = mpw,
value = "FertilityRate",
joinBy = c("hc-a2", "hc-a2"),
name = "Fertility Rate",
dataLabels = list(enabled = TRUE, format = '{point.name}'),
borderColor = "#8C89C8",
color = "#C5C889",
borderWidth = 0.1,
tooltip = list(valueDecimals = 2, valuePrefix = "$", valueSuffix = " USD")) %>%
hc_title("Fertility Rate")
由于
答案 0 :(得分:1)
好的,我明白了。
map %>% hc_colorAxis(minColor = "#C5C889", maxColor = "#434348")