Description Usage Arguments Value Author(s) See Also Examples
View source: R/StructurePlotting.R
This function uses the URL built with buildCDKdepictURL
to create an
image for direct use in plotting, via a temporary svg file and given
coordinates. Output requires that plot.new has been called.
1 | renderSMILES.CDKdepict(depictURL,coords=c(0,0,100,100), filename="tmp.svg")
|
depictURL |
A URL created with |
coords |
This is used to control the size of the image within the plot. Values
|
filename |
Name of the temporary svg file for saving the image. Can be used to save all image files if renamed for every instance. |
Returns an image for use during plotting
Emma Schymanski <emma.schymanski@uni.lu>
buildCDKdepictURL
to create the URL, renderSMILES.rcdk
for alternative plotting direct from SMILES.
1 2 3 4 5 6 | plot.new()
plot.window(xlim=c(0,200), ylim=c(0,100))
test_url <- buildCDKdepictURL("OS(=O)(=O)c1ccc(cc1)C(CC(=O)O)CC(=O)O |Sg:n:15:m:ht,Sg:n:11:n:ht|",
style="cow",title="SPADCs, n+m=0-5", abbr="off",suppressh=TRUE,showtitle=TRUE,zoom=5,annotate="off",
smarts="C(=O)O")
renderSMILES.CDKdepict(test_url)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.