jsp购物网站开发视频,一个静态网站怎么做,甘肃网络推广技巧,wordpress中国区官方论坛目录
1、不显示图例
2、自定义图例位置
3、修改图例背景颜色、外框颜色、大小
4、修改图例大小
5、图例设置背景、线框为空
6、自定义设置多个图例的标题
7、设置多个图例的之间的间隔
8、取消不需要的图例显示 1、不显示图例
theme(legend.position none none)
引号内可选参数有right、left、bottom对应右、下、左
2、自定义图例位置 theme(legend.positionc(0, 1),legend.justificationc(0, 1))
元素 legend.position 和 legend.justification 同时出现并且值相同想象图例在坐标轴里则c(0, 1)为面板左上角c(1, 0)为面板右下角c(0.5, 05)为面板中间面板指绘图区域。
3、修改图例背景颜色、外框颜色、大小 theme(legend.background element_rect(fill lightblue, # 填充色colour black, # 框线色size 1.5 ) ) # 线条宽度
4、修改图例大小 theme(# legend.key.size unit(35, pt) # 统一修改# 或legend.key.height unit(35, pt),legend.key.width unit(55, pt))
5、图例设置背景、线框为空 theme(legend.background element_blank(), # 图例的背景被隐藏legend.box.background element_blank()) # 图例的边框被隐藏
6、自定义设置多个图例的标题 guides(sizeguide_legend(titleA), # 数值变量的#fillguide_legend(titleA), # 填充变量的colguide_colorbar(title a)) # 颜色变量的
7、设置多个图例的之间的间隔 theme(legend.margin margin(20, unit pt) # 设置图例之间的间隔)
8、取消不需要的图例显示
将不需要显示的图例类型设置为none 即可 guides(sizeguide_legend(titleA),col none)