I keep getting a shrunk plot when I try to do a plot in R using data from a file I downloaded

Viewed 30

This is a graph of expenses(y variable) against income (x variable)

The graph is smashed into about 10% of the total area available. I have not encountered this before. What is going on? How do I produce a reasonably sized graph?

1 Answers
# This is a plot
par(mfrow=c(1,1))
x<-1:10; y=x*x
plot(x, y, type="b")

# Here is how the plot shrinks
par(mfrow=c(2,2))
x<-1:10; y=x*x
plot(x, y, type="b")

# With dev.off() you clean the settings and the graph should be big again
x<-1:10; y=x*x
plot(x, y, type="b")

enter image description here

vs.

enter image description here

Related