pie_bake轻松饼图,R语言tastypie包简易饼图
pie_bake轻松饼图1.jpg pie_bake轻松饼图2.jpg pie_bake轻松饼图3.jpg# Wed Sep 08 01:16:24 2021 edit
# 字符编码:UTF-8
# R 版本:R 4.1.1 x64 for window 11
# cgh163email@163.com
# 个人笔记不负责任,拎了个梨🍐🍈
#.rs.restartR()
require(tastypie)
rm(list = ls());gc()
example <- data.frame(
c("a. This", "b. Is", "c. Just", "d. An", "e. Example"),
c(2.9, 6.9, 4.20, 13.12, 6.66)
)
pie_bake(
data = example,
template = "basic3",
perc = TRUE,
group_name = "groups",
title = "Example1"
)
ggplot2::ggsave('pie_bake轻松饼图1.jpg',dpi = 300)
pie_bake(
data = example,
template = "red1",
title = "Ex2"
)
ggplot2::ggsave('pie_bake轻松饼图2.jpg',dpi = 300)
pie_bake(
data = example,
template = "donut2",
perc = TRUE,
group_name = "CAT:"
)
ggplot2::ggsave('pie_bake轻松饼图3.jpg',dpi = 300)
#end Wed Sep 08 01:18:32 2021 --
网友评论