[R] small plot inside a big plot

Remko Duursma den.duurs at lycos.com
Sat Jun 7 00:55:48 CEST 2003


Actually, that will not work. I want the histogram to be much smaller than the plot to which i want to add it, I don't want to overlay it, instead i want to have a small box in the whitespace of the scatterplot containing the histogram.

Remko



^'~,_,~'^'~,_,~'^'~,_,~'^'~,_,~'^'~,_,~'^'~,_,~'
Remko Duursma, Ph.D. student
Forest Biometrics Lab / Idaho Stable Isotope Lab
University of Idaho, Moscow, ID, U.S.A.

--------- Original Message ---------

DATE: Fri, 06 Jun 2003 14:59:12
From: "Roger D. Peng" <rpeng at stat.ucla.edu>
To: den.duurs at lycos.com
Cc: rhelp <r-help at r-project.org>

>For a histogram, you might use `add = TRUE' in the call to hist().
>
>-roger
>
>Remko Duursma wrote:
>
>> Dear R-helpers,
>> 
>> i want to draw a small plot (histogram) within a larger plot (simple scatterplot), so that the axes of the bigger plot remain intact.
>> 
>> I know how to use layout() and par(mfrow...) and such, but I want the smaller graph to be *inside* the bigger plot. Is this possible?
>> 
>> thanks,
>> 
>> Remko
>> 
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>> 
>> 
>
>




More information about the R-help mailing list