r图例麻烦,如何更改图例中的文字大小 [英] r legend trouble , how to change the text size in legend

查看:174
本文介绍了r图例麻烦,如何更改图例中的文字大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为CEX不起作用. Cex将改变传奇的整个规模.但我只想扩大文字大小.任何命令都会有所帮助吗?

I think cex doesn't work. Cex will change the whole scale of the legend. But I just want to enlarge the text size. any command will help?

推荐答案

是的,设置pt.cex = 1并根据需要更改cex,如下所示:

Yes!, set pt.cex = 1 and change cex as you want as in:

plot(c(1,1))
legend("topleft", "Legend", cex=1.3, pch=1, pt.cex = 1)

这篇关于r图例麻烦,如何更改图例中的文字大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆