如何解决图例大小及其文字问题?

时间:2019-05-08 02:31:27

标签: r legend

我正在进行一些分析并尝试创建一个热图,这是我的代码

library(rworldmap)

d <- data.frame(
  country=c("Argentina", "Austria","Bangladesh", "Brazil","Canada", "China", "Croatia", "Egypt",
            "Finland", "Germany", "Greece", "Hong Kong", "India", "Iran", "Ireland", "Italy", "Japan", "Jordan", "Malaysia", "Morocco", "Mexico", "Netherlands","New Zealand","Norway"
            ,"Pakistan", "Poland", "Portugal", "Russia", "Rwanda", "Saudi Arabia", "Singapore", 
            "South Korea", "Spain", "Sweden", "Switzerland", "Thailand", "United Kingdom", "USA"),
  value=c(3,2,1,7,1,9,1,4,3,10,5,1,43,3,1,18,3,1,24,1,1,11,2,1,11,1,1,1,1,2,1,1,1,17,5,1,2,32))
n <- joinCountryData2Map(d, joinCode="NAME", nameJoinColumn="country")
mapCountryData(n,nameColumnToPlot="value",catMethod= 'fixedWidth',mapTitle="Representation of publications on the world map")

但是,生成热图时,图例太大,与图不成比例。另一个igraph代码也会发生相同的错误。最近,对于任何分析,我的滞后都不是默认的。他们变了。反正要解决这个问题吗?enter image description here

0 个答案:

没有答案