hack のためのネタ帳, etc,,,

タグ検索でbarchart2件見つかりました。

20191205: GNU R - ggplot2 - 複数系列の棒・円グラフに引き出し線による凡例を付ける

* 承前 - [[20191205: GNU R - ggplot2 - 円グラフに引き出し線による凡例を付ける]] * 問題 複数系列ある場合、aes() の中での計算がグループ化出来ないため適切な位置に凡例を付ける事が出来なかった。 * 解決方法 必要な位置情報を事前計算して data frame 内に放り込んで、それを参照することにした。 以下の関数が肝。 =|R| add_geom_stackinfo = function(df, x, y, fill, vjust=0.5) { df=d…

https://seesaawiki.jp/w/kou1okada/d/20191205%3a%20... - 2019年12月17日更新

20191205: GNU R - ggplot2 - 円グラフに引き出し線による凡例を付ける

* 必要なライブラリ ggplot2 と ggrepel が必要 install =|R| install.packages("ggplot2") install.packages("ggrepel") ||= load =|R| library("ggplot2") library("ggrepel") ||= * サンプルデータ 乱数で以下のように生成した。 =|R| a=c("A1","A2","A3","A4","A5","MA","NA");a=factor(a) set.seed(0) df …

https://seesaawiki.jp/w/kou1okada/d/20191205%3a%20... - 2019年12月06日更新

ai(22) android(29) bash(40) c++(52) cxx(54) cygwin(128) debian(39) deeplearning(32) diary(765) excel(21) font(30) free-book(47) git(21) github(28) gnu-r(77) google(26) hdd(22) html(25) java(26) javascript(118) latex(57) lcd(22) library(24) linux(97) machinelearning(31) memo(462) microsoft(42) oss(25) pdf(38) powershell(65) programming(32) proxy(23) python(100) r-lang(47) ruby(86) security(72) ssh(34) tex(37) tips(397) troubleshooting(443) ubuntu(114) unicode(22) usb(21) virtualization(24) vscode(28) windows(126) windows10(50) wsl(26) zfs(32) 数式(21)

管理人/副管理人のみ編集できます