themeCanvas,Ggplot2对象的画布主题,R语言aRtsy包生成艺术
image.png
# Thu Sep 02 01:38:20 2021 edit
# 字符编码:UTF-8
# R 版本:R 4.1.1 x64 for window 11
# cgh163email@163.com
# 个人笔记不负责任,拎了个梨🍐🍈
#.rs.restartR()
rm(list = ls());gc()
library(aRtsy)#gg生成艺术·
? themeCanvas # Ggplot2对象的画布主题
set.seed(1)
canvas_turmite(color = "#000000", background = "#fafafa")
# Thu Sep 02 20:10:50 2021 --
set.seed(NULL)
canvas_turmite(color = '#FFCCCC'
, background = '#FF99CC',
p = 0.05,
iterations = 100000, # turmite的迭代次数。
width = 150, height = 150) |>
themeCanvas(
background='blue', # 背景色
margin=2#情节的边缘。
)
ggplot2::ggsave(filename = 'canvas_turmite画一幅泥灰岩4.jpg')
# Thu Sep 02 01:51:50 2021 --
网友评论