13
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ggplot2でラベル

Posted at

cf: http://rpubs.com/dichika/ggplot2_shape
cf: http://blog.goo.ne.jp/r-de-r/e/29758f8210d278bcf4d0599664621fd2

ggplot(smp, aes(x = year, y = value, group = country, colour = country)) + 
  geom_line() + geom_point() +
  geom_dl(aes(label = country), list("last.points", dl.trans(x=x+0.5))) + 
  xlim(1995, 2015) +
  theme_bw() + theme(legend.position = "none")

Rplot02.png

あと、ggplot2で作ったグラフでも論文誌に載せてくれると思います(少なくとも自分の分野では文句言われたことない)。

Enjoy!!

13
12
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?