Chemical Structures as Graph Labels in R

I asked the following question here <https://stackoverflow.com/questions/56236135/chemical-structures-as-graph-labels-in-r> but I ask it here for a different perspective.


I want to make a plot that labels a point with the chemical structure represented by the value at that point.


In the example below I have a plot of melting points which are labelled by the smiles strings of the molecules.



```
chem_data <- c(40.5, -6.3, -44)

names(chem_data) <- c("c1ccc(cc1)O", "Nc1ccccc1", "Fc1ccccc1" )

plot(chem_data, main="Example Plot\n Labelled with Smiles String", ylim=c(-50,50), xlim=c(0,4),
     ylab="mp /°C")

text(chem_data, labels=names(chem_data), cex= 0.7, pos=1)

```

How do I label the points with the chemical structures rather than the smiles strings?


Can R generate the image of the chemical structure from the smiles string?


