How to delete axis title in graphics in R?

Asked

Viewed 1,187 times

4

I am doing multiple regressions for the same variable X and filling together using the command par(mfrow) in the R. But I want to put only one title on the X axis at the end of all my charts. I already know how to put the title, however I can’t delete the titles of the generated X variable in each chart. Can anyone help me?

  • Your question is clear, but maybe putting an example of code and figure will help draw the attention of contributors.

1 answer

2

You can place the x-axis label as empty using xlab="" inside plot.

If you want to remove the space left, you have to change the parameter mar:

par(mar=c(3, 4, 4, 2)) #A ordem é: embaixo, esquerda, topo, direita
plot(1:10, 1:10, xlab="")

Browser other questions tagged

You are not signed in. Login or sign up in order to post.