总结:本插件可以通过拖动变量,生成对应的图形。但目前,插件提供的数据框、图的类型比较少,相对于ggthemeassist包定制化不多。但各有各的优势吧。
1. Github地址:
https://github.com/dreamRs/esquisse
2. 安装
source("https://install-github.me/dreamRs/esquisse")
# or with devtools:
devtools::install_github("dreamRs/esquisse")
3. 加载插件
esquisse::esquisser()
4. 示例
1. 选择数据框,系统暂时只有一个数据集,类型太少了
esquisse::esquisser(data = iris)
2. 拖拉变量到窗口,自动识别变量对应适合的作图类型
3. 标签
4. 颜色组合
5. 坐标轴大小限制
6. 生成脚本代码
ggplot(data = tg) +
aes(x = dose, y = length, color = supp) +
geom_point() +
scale_color_brewer(palette = "RdGy") +
labs(title = "biaoti",
subtitle = "fubiaoti") +
theme_minimal()
7.使用服务器的方法打开面板
options("esquisse.display.mode" = "browser")