[R] Plots inside a Plot

Bert Gunter gunter.berton at gene.com
Mon Nov 1 17:50:12 CET 2010


Petr is correct,I believe,  but see also ?layout for a (newer and)
more flexible approach to splitting the screen into a non-matricial
arrangement to overlay several plots.

?split.screen can also do this, but is somewhat clumsier to use imo.

Cheers,
Bert

On Mon, Nov 1, 2010 at 4:27 AM, Petr PIKAL <petr.pikal at precheza.cz> wrote:
> Hi
>
> I remember that I did it also in base graphics but it took me some time to
> find out how and it was a long time ago so.
>
> If I remember it correctly it was some combination of graphic parameters
> to set user coordinates and do not overwrite the first plot by setting
> par(new=TRUE)
>
> Regards
> Petr
>
>
>
>
> r-help-bounces at r-project.org napsal dne 01.11.2010 12:10:18:
>
>> Not in R base graphics, but you can do easily with the grid package.
>>
>> Best,
>> Uwe Ligges
>>
>>
>> On 01.11.2010 11:59, Knut Krueger wrote:
>> > hi,
>> >
>> > is it possible to draw a plot inside another plot f.e in the upper
> right
>> > corner. I do not mean the possbility
>> > par(mfrow = c(2,2).
>> >
>> >
>> > Kind Regards
>> > Knut
>> >
>> > ______________________________________________
>> > 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.
>>
>> ______________________________________________
>> 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.
>
> ______________________________________________
> 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.
>



-- 
Bert Gunter
Genentech Nonclinical Biostatistics



More information about the R-help mailing list