plot.tabplot: Plot a tabplot-object

Description Usage Arguments Examples

View source: R/plot_tabplot.r

Description

Plot a tabplot-object. The arguments of this function, which specify the layout, can also be passed on to tableplot directly.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'tabplot'
plot(x, fontsize = 10, legend.lines = 8,
  max_print_levels = 15, text_NA = "missing", title = NULL,
  showTitle = NULL, fontsize.title = 14, showNumAxes = TRUE,
  rotateNames = NA, relative = FALSE, vp = NULL, ...)

## S3 method for class 'tabplot_compare'
plot(x, ...)

Arguments

x

tabplot-object or tabplot_compare-object

fontsize

the (maximum) fontsize

legend.lines

the number of lines preserved for the legend

max_print_levels

maximum number of printed category labels in the legend

text_NA

text printed for the missing values category in the legend

title

title of the plot (shown if showTitle==TRUE)

showTitle

show the title. By default FALSE, unless a title is given.

fontsize.title

the fontsize of the title

showNumAxes

plots an x-axis for each numerical variable, along with grid lines (TRUE by default).

rotateNames

logical or numeric value that determines the rotation angle of the column names. If TRUE, they are rotated 90 degrees. By default, column names are rotated when the number of columns is greater than 15.

relative

boolean that determines whether relative scales are used for relative tableplots. If TRUE, then mean.diff.rel<-(mean2-mean1)/mean1*100 are used. If FALSE, then the absolute diference is taken: mean <- mean2-mean.

vp

viewport to draw plot in (for instance useful to stack multiple tableplots)

...

other arguments are not used

Examples

1
2
3
4
5
6
7
8
9
# load diamonds dataset from ggplot2
require(ggplot2)
data(diamonds)

tab <- tableplot(diamonds)
plot(tab, title="Shine on you Crazy Diamond!!!",
	 fontsize=12,
	 legend.lines=7,
	 fontsize.title=16)

tabplot documentation built on Sept. 17, 2019, 5:04 p.m.