r - Specifying `curve` plot height? -


i have following code generates 4 plots, end squished (see image below). how fix this?

par(mfrow=c(2,2)) curve(.5*exp(-.5*x),from=0,to=10,main="f(x)") curve(.25*exp(-.25*x),from=0,to=10,main="f(y)") curve(1-exp(-.5*x),from=0,to=10,main="f(x)") curve(1-exp(-.25*x),from=0,to=10,main="f(y)") 

enter image description here

three options:

1) use par(mar=c(bottom, left, top, right)) specify respective margins.

2) increase total output size , automatically increase plot size.

3) use ggplot facet_wrap, allow share axes maximize space.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -