Change plot margins in R to obtain a "rectangular plot" -


i trying generate graphs x-axis length bigger y-axis height. using distribution long right tails , in order accomodate entire representation, need augment length of x. if use:

plot(x , y, type="l", xlim=c(.. , ..)) 

it rescale x axis, not lengthen it. in other words, generate figure in "rectangular" box plot while r generates quadratic boxes default. suggestions?

rstudio allows resize graphs clicking mouse.

simulating sort of bell shaped witch of agness type curve:

> fx <- function(x){1 / (1 + x^2)} > plot(fx, = -10, = 10) 

in plot window click "export" > "save image" gives default width , height, , can change writing new numbers in width , height boxes. think these numbers number of pixels, if want image, twice wide long, set width 800 , height height 400. click "update preview". save image when right. think setting width 800, , height 500 little better.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -