Export both Image and Data from R to an Excel spreadsheet -


it simple print image , save on disk just:

fit <- lm(some ~ model)  png(filename="your/file/location/name.png") plot(fit) dev.off() 

write data excel spreadsheet just

write.csv(rnorm(10),"some file",sep=",") 

my question how 1 redirect both above in spreadsheet. word, output graph paired withs image/plot on excel workbook?

thanks,

i use xlsx package. check out addpicture function , adddataframe function. found package easy work with.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -