apc.plot.data.all: Make all descriptive plots.

Description Usage Arguments Warning Author(s) See Also Examples

View source: R/apc_plot_data.R

Description

Plots data sums using apc.plot.data.sums. Sparsity plots of data using apc.plot.data.sparsity. Plots data using all combinations of two time scales using apc.plot.data.within. Level plots of data using apc.plot.data.level. The latter plot is done for responses and if applicable also for doses and mortality rates.

Usage

1

Arguments

apc.data.list

List. See apc.data.list for a description of the format.

log

Optional plot argument. Character. "y" if y-scale is logarithmic, otherwise "". Default is "y".

rotate

Optional. Logical. If TRUE rotates apc.plot.data.level 90 degrees clockwise (or anti-clockwise if data.format is "CL"). Default is FALSE.

Warning

A warning is produced if dimension is not divisible by thin, so that one group is smaller than other groups.

Author(s)

Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk> 25 Apr 2015

See Also

The example below uses Italian bladder cancer data, see data.Italian.bladder.cancer

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#####################
#  EXAMPLE with artificial data
#  generate a 3x4 matrix in "AP" data.format with the numbers 1..12

m.data  	<- matrix(data=seq(length.out=12),nrow=3,ncol=4)
m.data
data.list	<- apc.data.list(m.data,"AP")
apc.plot.data.all(data.list,log="")				

#####################
#	EXAMPLE with Italian bladder cancer data
#
#	get data list, then make all descriptive plots.
# 	Note that warnings are given in relation to the data chosen thinning
#	This can be avoided by working with the individual plots, and in particular
#	with apc.plot.data.within where the thinning happens.
#
#	data.list	<- data.Italian.bladder.cancer()	
#	apc.plot.data.all(data.list)

Example output

     [,1] [,2] [,3] [,4]
[1,]    1    4    7   10
[2,]    2    5    8   11
[3,]    3    6    9   12
dev.new(): using pdf(file="Rplots1.pdf")
dev.new(): using pdf(file="Rplots2.pdf")

apc documentation built on Oct. 23, 2020, 6:17 p.m.