Load image from website

前端 未结 3 1185
谎友^
谎友^ 2020-12-12 03:10

I am trying to add some chemical structure images to some plots I have created. I am using the ACToR database to access the chemical structures. For example:

3条回答
  •  囚心锁ツ
    2020-12-12 03:32

    Please note that the Bioconductor R package EBImage is capable of loading images directly from an URL and visualizing them:

    library(EBImage)
    
    img = readImage("path/to/your/image/file or URL")
    display(img, method = "raster")
    

    Cheers,

    Andrzej

提交回复
热议问题