我有一个看起来像这样的数据框,我想用它创建一个圆形 voronoi 图
df <- data.frame(country = c("Ukraine", "Russia", "Argentina", "China", "Romania", "Other"),
prod = c(11.0, 10.6, 3.1, 2.4, 2.1, 15.3))
df
#> country prod
#> 1 Ukraine 11.0
#> 2 Russia 10.6
#> 3 Argentina 3.1
#> 4 China 2.4
#> 5 Romania 2.1
#> 6 Other 15.3
Run Code Online (Sandbox Code Playgroud)
由reprex 包于 2022 年 4 月 8 日创建(v2.0.1)
library(ggplot2)
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following …Run Code Online (Sandbox Code Playgroud)