[R] Adding picture to graph?
Rainer M Krug
r.m.krug at gmail.com
Thu Jul 30 09:41:29 CEST 2009
Thanks a lot for all your responses - I'll check them out and pass them on.
Cheers
Rainer
On Wed, Jul 29, 2009 at 6:32 PM, Greg Snow<Greg.Snow at imail.org> wrote:
> In addition to the other responses, you may want to look at the subplot function in the TeachingDemos package for a way to place the image at a location within the plot (the other answers so far use the image as a full background), see the last example on the help page for a way to use the R logo as a plotting symbol.
>
> If you want to define your own symbols for plotting, look at the my.symbols function in the TeachingDemos package.
>
> Hope this helps,
>
> --
> 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 Rainer M Krug
>> Sent: Wednesday, July 29, 2009 2:27 AM
>> To: r-help at stat.math.ethz.ch
>> Subject: [R] Adding picture to graph?
>>
>> Hi
>>
>> while teaching R, the question came up if it would be possible to add
>> a picture (saved on the HDD) to a graph (generated by plot()), which
>> we could not answer.
>>
>>
>>
>> It might easily kill a clean graph, but: is there a way of doing this,
>> even one should not do it?
>>
>>
>> On a similar line of thought: is it possibe to define own symbols so
>> that they can be used in the plot function with pch=?
>>
>>
>> Rainer
>>
>> --
>> Rainer M. Krug, Centre of Excellence for Invasion Biology,
>> Stellenbosch University, South Africa
>>
>> ______________________________________________
>> 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.
>
--
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa
More information about the R-help
mailing list