Learn R Programming

tabplot (version 0.11-1)

tableSave: Save a tableplot

Description

Save a tableplot in pdf, eps, 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, fontsize = 8, legend.lines = 8, title =
  tab$dataset, showTitle = FALSE, ...)

Arguments

filename
filename with extention (pdf, eps, 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
fontsize
the (maximum) fontsize
legend.lines
the number of lines preserved for the legend
title
title of the plot (shown if showTitle==TRUE)
showTitle
show the title
...
other arguments passed to graphics device

Examples

Run this code
# load diamonds dataset from ggplot2
	require(ggplot2)
	data(diamonds)
	
	# default tableplot
	tab <- tableplot(diamonds)
	
	# save tableplot
	tableSave(tab, filename="diamonds.png")

Run the code above in your browser using DataLab