From 2debcf12a961c58507f58aa235e66596d622a5e1 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Mon, 23 Dec 2019 14:06:03 -0600 Subject: [PATCH] Pie Recipe --- cheatsheets/rstudio.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cheatsheets/rstudio.md diff --git a/cheatsheets/rstudio.md b/cheatsheets/rstudio.md new file mode 100644 index 0000000..6fbaffb --- /dev/null +++ b/cheatsheets/rstudio.md @@ -0,0 +1,10 @@ + +### Pie Receipt + +Pie chart with duplicate categories merged. + +```rstudio +library("dplyr") ## load +TimeSum <- (TimeTracking %>% group_by(Category) %>% summarize(Duration = sum(Duration))) +pie(TimeSum$Duration, TimeSum$Category +``` \ No newline at end of file -- 2.47.3