I am doing a dimensional reduction experiment, where a set of faces will be places onto a X-Y plane. I want to show the real face at each point in the plot (Example: Figure 10 at the page 476). Can I do this in R? Thank you.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will probably need some add-on packages like
pngandrasterto achieve this.So first up, make sure you have the packages loaded.
Now, get an image (an awesome squiggle I made in ms paint – saved as
spotimg.png):Load the image into R and plot it:
The last 4 inputs to the
rasterImagecall give the coordinates of the image’s boundary in the formatxleft, ybottom, xright, ytopAnd bingo, there’s your image plotted where you specified.