Professional Documents
Culture Documents
Assignment3 R
Assignment3 R
Q1. The x-axis is behaving weirdly. How would you fix it?
The x-axis is behaving weirdly because it is not scaled to adjust the values of all
the 12 months. In order to fix it, you need to add the function of scaling the x
axis to your plot which is:
scale_x_continuous(breaks = seq(1,12, by = 1))
Adding the above line gives the plot:
We see for the consumer sales, its always the month of September with very
high sales for all the regions. While for the corporate sales it varies as
sometimes its September, sometimes its December, so there is no fixed pattern
that we observe.