Change scale on R

Asked

Viewed 21 times

0

I’m trying to put a scale on the chart, but it gets like this:

inserir a descrição da imagem aqui

I’d like you to stay 0, 0.05, 0.5, 1, 5, 10, 50 and 100, not this way they are on the X axis.

The code I used was this:

plot(model2)
plot(model2, broken=FALSE, xlab="Dose (ppm)", ylab="Crescimento micelial (mm)", main="EC50")
plot(model2, axes=F)
axis(1,at=c(0, 0.05, 0.5, 1, 5, 10, 50, 100))
axis(2,at=c(0, 20, 40, 60, 80, 100))
ED(model2, respLev=50, interval = "delta")

1 answer

1

You don’t want to use scientific notation, right?

I found an old question here that may have a solution for you.

Language R: How to get scientific numbers out of graphs?

The solution is to use

options(scipen = 999)
plot(model2)

I’ve never used it, but from what I understand it works that way.

  • Ball show, gave straight! Only the other numbers by ex 1 is 1,00, with numbers after the comma

Browser other questions tagged

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