Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201919

R grid arrange tiff microscopy RGB

$
0
0

I have a RGB tiff files (from cellProfiler) which I want to import to R, label and arrange - as part of a high throughput analysis. The closest I get is using:

library(tiff) 
library(raster)
imageTiff <- tiff::readTIFF(imagePath[i])
rasterTiff <- raster::as.raster(imageTiff)
raster::plot(rasterTiff)

raster::plot plots the image nicely but I can't catch the output and use it with gridExtra or add labels.

In addition I tried rasterVis with levelPlot and multiple other ways importing the tiff and then converting them to grob or ggplots.

However, I can't get anything to work and would like to ask if R is even suited at all for that task?

Thank you very much for your help!


Viewing all articles
Browse latest Browse all 201919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>