On Fri, Apr 10, 2009 at 11:23 AM, Juliet Hannah <juliet.han...@gmail.com> wrote:
> Hi Group,
>
> For the plot below, are there other ways I can use more of the
> plotting space.  I've tweaked the parameters I know of.
> I could also put the plot titles inside the plot if there is a way to
> do that.  Thanks for your input. Regards, Juliet

There are no more "padding" parameters.

I assume your actual use-case is different from plotting the same
picture four times, but without more details it's hard to say whether
any further space savings are possible. The obvious thing to try would
be to create a single multipanel plot rather than four separate ones.

-Deepayan


> p1 <- runif(1000) # sample data
> qp1 <- qqmath(~ -log(p1), data = as.data.frame(p1), distribution =
> qexp,main="A",xlab="",ylab="")
> qp2 <- qqmath(~ -log(p1), data = as.data.frame(p1), distribution =
> qexp,main="B",xlab="",ylab="")
> qp3 <- qqmath(~ -log(p1), data = as.data.frame(p1), distribution =
> qexp,main="C",xlab="",ylab="")
> qp4 <- qqmath(~ -log(p1), data = as.data.frame(p1), distribution =
> qexp,main="D",xlab="",ylab="")
>
> png(file="myplots.png", height=500,width=500)
> trellis.par.set(list(layout.heights = list(top.padding =
> 0,main.key.padding=0,key.axis.padding=0,
>                                          axis.xlab.padding=0,
> xlab.key.padding=0,key.sub.padding=0,bottom.padding=0),
>                     layout.widths =
> list(left.padding=0,key.ylab.padding=0,ylab.axis.padding=0,axis.key.padding=0,right.padding=0)))
> plot(qp1, split = c(1, 1, 2, 2), more = TRUE)
> plot(qp2, split = c(1, 2, 2, 2), more = TRUE)
> plot(qp3, split = c(2, 1, 2, 2), more = TRUE)
> plot(qp4, split = c(2, 2, 2, 2), more = FALSE)
> dev.off()
>
> ______________________________________________
> R-help@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.
>

______________________________________________
R-help@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.

Reply via email to