parallelTables: Place two or more ztables or figures side by side in Latex or...

View source: R/parallelTables.R

parallelTablesR Documentation

Place two or more ztables or figures side by side in Latex or HTML format

Description

Place two or more ztables or figures side by side in Latex or HTML format. Requires Latex "boxedminipage" package in preamble. The ztable for this purpose should be made by function ztable with tabular="TRUE".

Usage

parallelTables(width, listTables, type = "latex")

Arguments

width

a numeric vector specifies the width to which the tables or figures should be scaled

listTables

a list consists of object of "ztable" or valid figure name

type

Type of table to produce. Possible values for type are "latex" or "html". Default value is "latex".

Examples

require(ztable)
z=ztable(head(mtcars[1:3]),tabular=TRUE)
parallelTables(c(0.4,0.3),list(z,z))
parallelTables(c(0.5,0.5),list(z,z))
parallelTables(c(0.5,0.5),list(z,z,type="html"))
z1=ztable(head(iris[1:3]),turn=TRUE,angle=10,zebra=1)
z2=ztable(head(iris[1:3]),turn=TRUE,angle=-10,zebra=2)
parallelTables(c(0.5,0.5),list(z1,z2))

cardiomoon/ztable documentation built on July 27, 2023, 10:25 a.m.