使用 mtext 删除添加到绘图中的文本 [英] removing text added to a plot with mtext

查看:52
本文介绍了使用 mtext 删除添加到绘图中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 mtext 将文本添加到 R 图中

Having added text to an R plot with mtext

例如

mtext("my added text",side=1)

我怎样才能删除它?

推荐答案

制作另一个情节.(毕竟它们很便宜).mtext 像大多数基本图形功能一样,通过绘图的单向副作用模型运行.没有可以事后修改的底层存储设施.(我过去曾尝试用相同的 col="white" 字母书写,但它看起来很糟糕.)失败了,如果一个人在一个具有默认另存为.."的操作系统上创建一个pdf文件,然后可以使用pdf编辑程序.

Make another plot. (They are dirt cheap after all). mtext like most base graphic functions operates via a one-way side-effect model of plotting. There is no underlying storage facility that can be modified after the fact. ( I in the past have tried writing over with identical col="white" letters but it looks terrible.) Failing that, if one is on an OS that has a default "Save as.." that creates a pdf file, then one can use a pdf-editing program.

这篇关于使用 mtext 删除添加到绘图中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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