I´m using plotBCV which has a legend included in the top-right corner of the plot. I would like to change the names in the legend because when I reduce the size of the plot to export it to pdf, the names in the legend goes out of the box. I tried using the same I did with plot but it didn´t work.
Code and error:
plotBCV(y,cex.axis=1.1,cex.lab=1.1, cex.main=1.4, main="scox-miec.raw", legend(2.5,5,legend=c("Tag","Com","Trend")))
Error in title(...) : parámetro gráfico inválido