ggplot制作手绘样草图
为ggplot2打造的、原生语法支持的手绘风格几何对象——纯R实现rough.js 素描美学,无需JavaScript,无需浏览器。
1️⃣安装一下
install.packages("ggsketch")
2️⃣使用一下
ggplot(df, aes(product, units)) +
geom_sketch_col(fill = "#7BAFD4", seed = 1L) + #调用ggsketch
labs(title = "Units sold") + theme_sketch()
3️⃣效果见贴图
参考:
https://github.com/orijitghosh/ggsketch
#学术 #博士 #SCI #硕士 #生物 #科研学习 #科研 #实验