how to hyperlink an image in R Markdown
The following worked for me knitted to HTML. The code references an image from a local data store "./data/appStore.png" The image links to the app store url "https://itunes.apple.com/us/app/my-toy-box/id1217665205?mt=8". When hovering over the image the user sees, "My Toy Box on App Store". The alt text "MyToyBox" doesn't appear.
[![MyToyBox](./data/appStore.png "My Toy Box on App Store")](https://itunes.apple.com/us/app/my-toy-box/id1217665205?mt=8)
Use this way: ![Alt text](Web link or path)
Examples: ![Image name](img/image.png)
or![Image name](http://www.host.com/image.png)
Combining with the normal syntax for a hyperlink [text](URL)
, we have:
[![Alt text](Web link or path)](web link to website)
Example:
[![Image name](image.png)](http://www.host.com/link.html)