legend(x, y = NULL, legend, fill = NULL, col = par("col"),
border = "black", lty, lwd, pch,
angle = 45, density = NULL, bty = "o", bg = par("bg"),
box.lwd = par("lwd"), box.lty = par("lty"), box.col = par("fg"),
pt.bg = NA, cex = 1, pt.cex = cex, pt.lwd = lwd,
xjust = 0, yjust = 1, x.intersp = 1, y.intersp = 1,
adj = c(0, 0.5), text.width = NULL, text.col = par("col"),
text.font = NULL, merge = do.lines && has.pch, trace = FALSE,
plot = TRUE, ncol = 1, horiz = FALSE, title = NULL,
inset = 0, xpd, title.col = text.col, title.adj = 0.5,
seg.len = 2)
x, y X,y用于定位图例,也可用单键词"bottomright", "bottom", "bottomleft", "left", "topleft", &#
R语言绘图-legend()添加图例
最新推荐文章于 2024-08-25 20:50:23 发布
本文介绍了R语言中使用legend()函数添加图例的方法,包括图例的位置、颜色、样式等参数设置。通过调整x, y坐标、legend内容、fill颜色、col、border、lty、lwd、pch等参数,可以定制化图例的显示效果。此外,还提到了图例框的样式和背景色,以及如何设置图例标题和排列方式。"
115941293,10535424,安装Azul Zulu JDK for Azure & Azure Stack,"['Java', 'OpenJDK', 'Azure', 'Azure Stack', 'Azul Systems']
摘要由CSDN通过智能技术生成