0
我试图将标签放在绘图中的数据点上,该图找到人口最少的前5个国家。将标签添加到绘图上的数据点R
Smallestpop.order = order(population$X2014)
smallref = population[Smallestpop.order,]
smallref[1:5,]
plot(smallref[1:5,3:,])
text(smallref[1:5],labels=smallref$Country.Code[1:5],adj = NULL,
pos = 1, offset = 0.5, vfont = NULL,
cex = 1, col = NULL, font = NULL)
这是目前情节看起来像
,但我想对每一个数据点的国家代码。 这可能吗?
分享一个可重现的数据供我们使用! –