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)")
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
Post a Comment