R语言rayrender包,add_title标题
image.png
# Mon Jun 14 22:47:29 2021 -
# 字符编码:UTF-8
# R 版本:R 4.1 x64 for window 10
# cgh163email@163.com
# 个人笔记不负责任,拎了个梨🍐🍈
#.rs.restartR()
require(rayrender)
rm(list = ls());gc()
#Plot the dragon
add_title(dragon, preview = TRUE, title_text = "Dragon标题", title_size=20)
# 添加一个标题栏
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20,
title_bar_color="white")
# 更改条形图的宽度
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20,
title_bar_color="white", title_offset = c(12,12))
#Change the color and title color:
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20,
title_bar_color="red", title_color = "white", title_offset = c(12,12))
#Change the transparency:
add_title(dragon, preview = TRUE, title_text = "Dragon", title_size=20, title_bar_alpha = 0.8,
title_bar_color="red", title_color = "white", title_offset = c(12,12))
dev.copy(png, "add_title标题.png");dev.off()
# Tue Jun 15 00:13:32 2021 --
网友评论