ggplot2では、色を名前または16進コードで設定するオプションがあります。同じ方法でrgb値を使用する方法はありますか?私はドキュメントを検索しましたが、迅速な答えは「ノー」と思われます。 (私がrgbを使用したい理由は、いくつかのプロットで使う色をいくつか持っており、それらはすべてRGB形式であるからです。hereのような場所から16進数を得ることができます。私はちょうどまっすぐggplot()
に値を入力することができrgb()with ggplot2 in R
6
A
答えて
8
あなたは六角に分数のRGB値を変換する機能RGBを使用することができますどのような機能[ `rgb`](HTTPSについて
rgb(0.1,0.2,0.3)
[1] "#1A334D"
+3
素晴らしい。私はこのディレクトリを使用したあなたがRGBカラーを端数で持っていない場合、 'maxColorValue'引数が必要です:' scale_colour_manual(values = c(rgb(207、31、46、maxColorValue = 255))、 "#ffda85 ")))' – RobertMc
関連する問題
- 1. ggplot2 plot question in R
- 2. for R with matrix in loop
- 3. 可変幅バーggplot2 barplot in R
- 4. date_minor_breaks in ggplot2
- 5. バイオリンプロットggplot2 with width with width
- 6. qqnormとqqline in ggplot2
- 7. Siamese Network with RGB images
- 8. floating.pie in plotrix in R
- 9. グラフGLM in ggplot2
- 10. xlab in ggplot2
- 11. ggplot2 - R
- 12. 複数の変数のスタックバープロットを作成する - ggplot2 in R
- 13. Rのggplot2:
- 14. R - ggplot2 geom_line dodge
- 15. R - ggplot2並列カテゴリプロット
- 16. %in%in R
- 17. Cartogram + choropleth map in R
- 18. スタックバーのエラーバーggplot2 R
- 19. R ggplot2グループ化バープロット
- 20. 密度プロットR、ggplot2
- 21. R ggplot2 boxplotでクリック
- 22. R Studioのggplot2ライブラリインストール
- 23. R slopegraph geom_line color ggplot2
- 24. Boxplot外れ値ラベリングin R
- 25. P-Invoke in Linux with core with
- 26. Fetch in in ssl with android
- 27. .with alternative in scala
- 28. Postgresql ALL with IN
- 29. ACF in group in R
- 30. 条件付きヒストグラムin R
:// STATを。 – bouncyball
'qplot(x = 1、fill = I(rgb(0.1、0.8、0.5)))' – Axeman
Nice!Iおかげで、Axeman&bouncyball。 – RobertMc