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

Share:

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

1
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

1
2
3
4
5
6
7
8
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))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.