-5

Forbes2000パッケージHSAURによって提供されるデータセットを使用しています。データをプロットすることはできますが、各ポイントを対応する国名で省略できません。ここに私が試したコードがあります:

Forbes2000top50ccompanies <- head(Forbes2000[order(Forbes2000$profits, decreasing= T),], n = 50)
plot(sales ~ assets,data=Forbes2000top50ccompanies)
4

1 に答える 1

1

これにより、国名の最初の4文字のラベルが表示され、デフォルトよりも小さくなります。

with(Forbes2000top50ccompanies, 
         text(x=assets, y=sales, 
              labels=substr(Forbes2000top50ccompanies$country, 1, 4), cex=0.6) ) 
于 2012-09-02T02:28:47.710 に答える