How to change the name of the parcel in R when the package already uses the existing header?

I use an R package called a mixer. I want to create some stories using the package, but with my own name. However, the plots already have existing titles. I tried setting main = NULL and using the title command to play the title. But this does not work ... below is an example:

require("mixer") data(macaque) mixer(macaque,qmin=8)->xout plot(xout, frame = 3, main = "") title("Something else") 

If you can tell me a general solution for changing the name of the plot when the package already has an existing story title, that would be great! Thanks!

+5
source share
1 answer

Here is a really cheap trick.

 require(mixer) data(macaque) mixer(macaque,qmin=8)->xout par(col.main='white') # Switch the plot title colour to white. plot(xout, frame = 3, main = "") par(col.main='black') # Switch back to black. title("Some title") 

enter image description here

+11
source

Source: https://habr.com/ru/post/1204229/


All Articles