Quantcast

Problem with "par" and "bubble plot"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Problem with "par" and "bubble plot"

Filoche
Hi all.

I have been trying to plot 9 bubble plots on each page of a PDF file. For this, I'm using :

par(mfcol = c(3,3), mar = c(3,3,3,3), oma = c(0,0,0,0));

However, when plotting the bubble plot (gstats package), it plots the graph on a full page. I tried to plot something else with plot(x,y) and it works as intended. So I'm guessing the problem comes from the bubble plot itself.

Anyone suggestion?

Best regards,
Phil
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem with "par" and "bubble plot"

Stefan Grosse-2
On Fri, 30 Jul 2010 13:30:35 -0700 (PDT) Filoche wrote:

F> par(mfcol = c(3,3), mar = c(3,3,3,3), oma = c(0,0,0,0));
F>
F> However, when plotting the bubble plot (gstats package), it plots
F> the graph on a full page. I tried to plot something else with
F> plot(x,y) and it works as intended. So I'm guessing the problem
F> comes from the bubble plot itself.

Could you provide an example (code) so that we see what you mean?

Thanks
Stefan

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem with "par" and "bubble plot"

Filoche
Hhi there.

Here's the example.

pdf(file="C:/Users/Modelisation/Desktop/BubblePlot.pdf", width = 15, height = 15, family = "Times", pointsize = 25);

par(mfcol = c(3,3), mar = c(3,3,3,3), oma = c(0,0,0,0));

for (i in 5:33)
{
       
        print(bubble(temp,i, col = "cornflowerblue"));
       
}

dev.off();


Best regards,
Phil
Loading...