Dear useRs: Is there a way to include a raster image (e.g., .gif, .jpg, .bmp) representing a company logo, a school logo, etc. into an R graphic? For example, it would be nice to be able to include the logo of the school into the charts that a student produces for her dissertation. Similarly, while working on a competitive analysis, it would be nice to be able to replace the names of the competitors with their brand logos. My searches so far led to inconclusive results and, therefore, any suggestions are welcome. Thank you so much. Tudor -- Tudor Dan Bodea Georgia Institute of Technology School of Civil and Environmental Engineering Web: http://www.prism.gatech.edu/~gtg757i
Look at the subplot function in the TeachingDemos package. One of the examples shows a scatterplot using the R logo as the points. You may also want to look at the my.symbols function in the same package. -----Original Message----- From: "Tudor Bodea" <gtg757i at mail.gatech.edu> To: "r-help at stat.math.ethz.ch" <r-help at stat.math.ethz.ch> Cc: "Tudor Bodea" <gtg757i at mail.gatech.edu> Sent: 6/16/08 9:11 PM Subject: [R] Insert raster image into an R graphic Dear useRs: Is there a way to include a raster image (e.g., .gif, .jpg, .bmp) representing a company logo, a school logo, etc. into an R graphic? For example, it would be nice to be able to include the logo of the school into the charts that a student produces for her dissertation. Similarly, while working on a competitive analysis, it would be nice to be able to replace the names of the competitors with their brand logos. My searches so far led to inconclusive results and, therefore, any suggestions are welcome. Thank you so much. Tudor -- Tudor Dan Bodea Georgia Institute of Technology School of Civil and Environmental Engineering Web: http://www.prism.gatech.edu/~gtg757i ______________________________________________ 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.
Creg: Thank you so much for your leads. I will take a look at the package and let you know how it goes. Tudor Quoting Greg Snow <Greg.Snow at imail.org>:> Look at the subplot function in the TeachingDemos package. One of the > examples shows a scatterplot using the R logo as the points. > You may also want to look at the my.symbols function in the same package. > > -----Original Message----- > From: "Tudor Bodea" <gtg757i at mail.gatech.edu> > To: "r-help at stat.math.ethz.ch" <r-help at stat.math.ethz.ch> > Cc: "Tudor Bodea" <gtg757i at mail.gatech.edu> > Sent: 6/16/08 9:11 PM > Subject: [R] Insert raster image into an R graphic > > > Dear useRs: > > Is there a way to include a raster image (e.g., .gif, .jpg, .bmp) > representing > a company logo, a school logo, etc. into an R graphic? For example, it would > be > nice to be able to include the logo of the school into the charts that a > student produces for her dissertation. Similarly, while working on a > competitive analysis, it would be nice to be able to replace the names of the > competitors with their brand logos. My searches so far led to inconclusive > results and, therefore, any suggestions are welcome. > > Thank you so much. > > Tudor > > -- > Tudor Dan Bodea > Georgia Institute of Technology > School of Civil and Environmental Engineering > Web: http://www.prism.gatech.edu/~gtg757i > > ______________________________________________ > 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. > >-- Tudor Dan Bodea Georgia Institute of Technology School of Civil and Environmental Engineering Web: http://www.prism.gatech.edu/~gtg757i
Hi Tudor Bodea wrote:> Dear useRs: > > Is there a way to include a raster image (e.g., .gif, .jpg, .bmp) representing > a company logo, a school logo, etc. into an R graphic? For example, it would be > nice to be able to include the logo of the school into the charts that a > student produces for her dissertation. Similarly, while working on a > competitive analysis, it would be nice to be able to replace the names of the > competitors with their brand logos. My searches so far led to inconclusive > results and, therefore, any suggestions are welcome.Someone has already mentioned 'pixmap' for bitmap logos. If the logo is in a vector format, the 'grImport' package might also be useful. Paul> Thank you so much. > > Tudor > > -- > Tudor Dan Bodea > Georgia Institute of Technology > School of Civil and Environmental Engineering > Web: http://www.prism.gatech.edu/~gtg757i > > ______________________________________________ > 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.-- Dr Paul Murrell Department of Statistics The University of Auckland Private Bag 92019 Auckland New Zealand 64 9 3737599 x85392 paul at stat.auckland.ac.nz http://www.stat.auckland.ac.nz/~paul/
Dr. Murrell: Thank you so much for your prompt reply. Tudor Quoting Paul Murrell <p.murrell at auckland.ac.nz>:> Hi > > > Tudor Bodea wrote: > > Dear useRs: > > > > Is there a way to include a raster image (e.g., .gif, .jpg, .bmp) > representing > > a company logo, a school logo, etc. into an R graphic? For example, it > would be > > nice to be able to include the logo of the school into the charts that a > > student produces for her dissertation. Similarly, while working on a > > competitive analysis, it would be nice to be able to replace the names of > the > > competitors with their brand logos. My searches so far led to inconclusive > > results and, therefore, any suggestions are welcome. > > > Someone has already mentioned 'pixmap' for bitmap logos. > > If the logo is in a vector format, the 'grImport' package might also be > useful. > > Paul > > > > Thank you so much. > > > > Tudor > > > > -- > > Tudor Dan Bodea > > Georgia Institute of Technology > > School of Civil and Environmental Engineering > > Web: http://www.prism.gatech.edu/~gtg757i > > > > ______________________________________________ > > 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. > > -- > Dr Paul Murrell > Department of Statistics > The University of Auckland > Private Bag 92019 > Auckland > New Zealand > 64 9 3737599 x85392 > paul at stat.auckland.ac.nz > http://www.stat.auckland.ac.nz/~paul/ >-- Tudor Dan Bodea Georgia Institute of Technology School of Civil and Environmental Engineering Web: http://www.prism.gatech.edu/~gtg757i
There is some sample code here: http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:translucency On Mon, Jun 16, 2008 at 11:09 PM, Tudor Bodea <gtg757i at mail.gatech.edu> wrote:> Dear useRs: > > Is there a way to include a raster image (e.g., .gif, .jpg, .bmp) representing > a company logo, a school logo, etc. into an R graphic? For example, it would be > nice to be able to include the logo of the school into the charts that a > student produces for her dissertation. Similarly, while working on a > competitive analysis, it would be nice to be able to replace the names of the > competitors with their brand logos. My searches so far led to inconclusive > results and, therefore, any suggestions are welcome. > > Thank you so much. > > Tudor > > -- > Tudor Dan Bodea > Georgia Institute of Technology > School of Civil and Environmental Engineering > Web: http://www.prism.gatech.edu/~gtg757i > > ______________________________________________ > 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. >
Gabor: Thank you so much for your prompt reply. Tudor Quoting Gabor Grothendieck <ggrothendieck at gmail.com>:> There is some sample code here: > > http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:translucency > > On Mon, Jun 16, 2008 at 11:09 PM, Tudor Bodea <gtg757i at mail.gatech.edu> > wrote: > > Dear useRs: > > > > Is there a way to include a raster image (e.g., .gif, .jpg, .bmp) > representing > > a company logo, a school logo, etc. into an R graphic? For example, it > would be > > nice to be able to include the logo of the school into the charts that a > > student produces for her dissertation. Similarly, while working on a > > competitive analysis, it would be nice to be able to replace the names of > the > > competitors with their brand logos. My searches so far led to inconclusive > > results and, therefore, any suggestions are welcome. > > > > Thank you so much. > > > > Tudor > > > > -- > > Tudor Dan Bodea > > Georgia Institute of Technology > > School of Civil and Environmental Engineering > > Web: http://www.prism.gatech.edu/~gtg757i > > > > ______________________________________________ > > 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. > > >-- Tudor Dan Bodea Georgia Institute of Technology School of Civil and Environmental Engineering Web: http://www.prism.gatech.edu/~gtg757i
Seemingly Similar Threads
- Place a string into the header/footer of a pdf file generated during a plot session
- Exception Handling
- Query an Access database based on a date attribute
- R: Query an Access database based on a date attribute
- Hiding information about functions in newly developed packages