Last answered:

09 Dec 2021

Posted on:

09 Dec 2021

0

How can I change this to normal presentation of numbers?

Hi! I've completed the task, but I have a little problem with the presentation of the data. At the moment I filtered the salary up to 45,000 and higher, the horizontal axis changed to 42+04, 6e+04, etc etc etc. How can I change this to normal presentation of numbers?

1 answers ( 0 marked as helpful)
Posted on:

09 Dec 2021

0

You can use either of these to solve your problem: Include a call that modifies this graph only. Assuming a is an object that holds all the ggplot calls,

a) a + scale_x_continuous(labels = comma)

b) Play around with R's options and use something like:

options(scipen = 999)

You can read a little more about this here:
https://stackoverflow.com/questions/25946047/how-to-prevent-scientific-notation-in-r/25946211

Submit an answer