r包调用legend函数_R语言绘图-legend()添加图例

本文详细介绍了R语言中用于添加图例的legend函数,包括参数含义及用法,如图例的位置(x, y),内容(legend),颜色(fill, col),样式(lty, lwd, pch)等,帮助用户更好地理解并掌握在R中自定义图例的方法。" 52576859,5149915,最优贸易策略:基于SPFA的路径优化,"['图论', '算法', 'SPFA', '路径搜索', '竞赛编程']
摘要由CSDN通过智能技术生成

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", &

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值