[R] how to get rid of unused space on all 4 borders in plot() render

David Winsemius dwinsemius at comcast.net
Sun Nov 21 17:58:35 CET 2010


On Nov 21, 2010, at 11:49 AM, madr wrote:

>
> x= c(1,5,7,-3,4)
> y= c(2,4,-5,2,5)
> plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='X',col = rgb(0,  
> 0, 0,
> 0.5),yaxt="n", ann=FALSE)
>

Rather than filling up r-help with incremental beginner questions you  
need to either:

--- read more introductory material such as found here:
http://cran.r-project.org/other-docs.html

--- or read more of the help documents. In this case ?par


> and this code produces:
> http://i53.tinypic.com/ffd7d3.png
>
> Where I marked in red areas that I want to get rid of and use as  
> much real
> screen estate as I can.
> -- 
> View this message in context: http://r.789695.n4.nabble.com/how-to-get-rid-of-unused-space-on-all-4-borders-in-plot-render-tp3052527p3052527.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list