[R]作図の色指定で使える色名を調べる
colors関数かcolours関数を使う。この関数は中身は同じで、色指定で使える色名を文字列型ベクトルで返す。
> colors()
[1] "white" "aliceblue" "antiquewhite"
[4] "antiquewhite1" "antiquewhite2" "antiquewhite3"
[7] "antiquewhite4" "aquamarine" "aquamarine1"
(以下省略)
> length(colors())
[1] 657
> colors()[1:3]
[1] "white" "aliceblue" "antiquewhite"
« [R]パイプを使う | トップページ | [R]作図の色指定で使える色名を画面表示する »
「R(作図)」カテゴリの記事
- [R]作図の色指定で使える色を虹色のグラデーションで得る(2025.01.17)
- [R]作図の色指定で使える色名を画面表示する(2025.01.07)
- [R]作図の色指定で使える色名を調べる(2025.01.05)
- [R]2次元線図を描画後にそれぞれの軸方向の描画範囲を得る(2023.10.05)

コメント