LoginSignup
7
4

More than 5 years have passed since last update.

ggplot2で軸のメモリをパーセントにする

Last updated at Posted at 2014-09-05

方法

scalesパッケージをロードしてから、scale_y_continuous(labels = percent)とする。

x <- rnorm(10) * 100000
y <- seq(0, 1, length = 10)
p <- qplot(x, y)
library(scales)
p + scale_y_continuous(labels = percent)

参考

7
4
0

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
7
4