You can embed plots using the subplot function in the TeachingDemos package.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Alex Reynolds
> Sent: Friday, June 13, 2008 4:56 PM
> To: r-help at r-project.org
> Subject: [R] stretching text vertically
>
> I'd like to stretch a plotted character vertically, to create
> a "sequence logo".
>
> Is there a parameter to allow stretching text() output
> vertically or squeeze horizontally?
>
> I know about Oliver Bembom's seqLogo library, but this
> generates a sequence logo plot using a separate bitmap
> device. I want to recreate the sequence logo *inside* an
> existing plot.
>
> Alternatively, is there a way to embed one plot inside another?
>
> I could use imagemagick outside R to 'montage' separate
> bitmaps, but then the sequence logo is going to be very
> difficult to align (base for
> base) with the plot I'm trying to join it to.
>
> Thanks for any tips,
> Alex
>
> ______________________________________________
> 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.
>