Learn R Programming

tabplot (version 1.3)

tableSave: Save a tableplot

Description

Save a tableplot in pdf, eps, svg, wmf, png, jpg, bmp, or tiff format.

Usage

tableSave(tab, filename = paste(tab$dataset, ".pdf", sep = ""), device = default_device(filename), path = NULL, scale = 1, width = par("din")[1], height = par("din")[2], dpi = 300, onePage = TRUE, ...)

Arguments

tab
a tabplot-object, or a list of tabplot-objects, which are either stacked horizontally or put on multiple pages (for pdf only)
filename
filename with extention (pdf, eps, svg, wmf, png, jpg, bmp, or tiff)
device
device, automatically extracted from filename extension
path
path to save to
scale
scaling factor
width
width (in inches)
height
height (in inches)
dpi
dpi to use for raster graphics
onePage
if true, multiple tab objects are stacked horizontally, else they are printed on multiple pages
...
other arguments passed to plot or the used graphics device

Examples

Run this code
## Not run: 
# require(ggplot2)
# data(diamonds)
# 
# # default tableplot
# tab <- tableplot(diamonds)
# 
# # save tableplot
# tableSave(tab, filename="diamonds.png", title="Shine on you Crazy Diamond!!!")
# ## End(Not run)

Run the code above in your browser using DataLab