Having added text to an R plot with mte开发者_运维技巧xt
e.g.
mtext("my added text",side=1)
How can I remove it?
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.
精彩评论