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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -