ggplot2 で始めるデータ可視化入門
Rick Scavetta
Founder, Scavetta Academy
ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(color = "red")
| タイプ | プロパティ |
|---|---|
| 色 | "red" |
属性は geom_*() で設定します。
color 属性は "red" に設定。

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(size = 10)
| タイプ | プロパティ |
|---|---|
| サイズ | 4 |

ggplot(iris, aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(shape = 4)
| タイプ | プロパティ |
|---|---|
| 形状 | 4 |

ggplot2 で始めるデータ可視化入門