[R] how to get rid of unused space on all 4 borders in plot() render
John Kane
jrkrideau at yahoo.ca
Sun Nov 21 18:41:25 CET 2010
Alternatively give ggplot2 package a try:
x= c(1,5,7,-3,4)
y= c(2,4,-5,2,5)
xx <- data.frame(x,y)
library(ggplot2)
qplot(x,y, data=xx)
--- On Sun, 11/21/10, madr <madrazel at interia.pl> wrote:
> From: madr <madrazel at interia.pl>
> Subject: [R] how to get rid of unused space on all 4 borders in plot() render
> To: r-help at r-project.org
> Received: Sunday, November 21, 2010, 11:49 AM
>
> 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)
>
> 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.
>
More information about the R-help
mailing list