Description Usage Arguments Value Examples
Save outputs to files
1 | map_to_file(object, filename, ...)
|
object |
The object you want to save as a file |
filename |
The name of the file that is produced. The extension needs to match the type of object you want to save (csv for tables, jpg/pdf for images) |
the object that was given as input (unchanged).
1 2 3 4 5 6 7 8 9 | ## Not run: # some table:
mytable<-data.frame(a=1:10,b=1:10)
map_to_file(mytable,"mytable.csv")
# some graphic made with ggplot:
mygraphic<-ggplot(mytable,aes(a,b))+geom_point()
map_to_file(mygraphic,"visualisation.jpg")
map_to_file(mygraphic,"visualisation.pdf")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.