Re: [R] little subplot in corner

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Thu, 20 Mar 2008 13:32:42 -0300

I don't if is this what you want, but:

plot(rnorm(100))
par(fig=c(0, 1/2, 0, 1/2), new=T)
plot(seq(-2,2,length=300),dnorm(seq(-2,2,length=300)),type="l", axes = F, xlab="", ylab="")

On 20/03/2008, Thomas Steiner <finbref.2006_at_gmail.com> wrote:
> I want to draw a little subplot ("overview") into my detailed plot. It
> should be placed in say the top right corner and have the size of some
> legend (like legend(x="topright", inset=0.03, ...)
>
> #main plot
> plot(rnorm(100))
> #give little density in corner
> plot(seq(-2,2,length=300),dnorm(seq(-2,2,length=300)),type="l")
>
> I don't want something like par(mfrow=c(1,2)) as this gives subplots
> of equal size.
> I saw that gridBase is very flexible, but could not find a suitable example.
>
> Thanks for help,
> Thomas
>
> ______________________________________________
> 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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
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.
Received on Thu 20 Mar 2008 - 16:55:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 20 Mar 2008 - 17:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive